[Bug 183696] New: Singleton classes (e.g. Plasma::ToolTipManager) do not work in ruby kde bindings

Adam Cigánek adam.ciganek at gmail.com
Sun Feb 8 15:47:47 GMT 2009


http://bugs.kde.org/show_bug.cgi?id=183696

           Summary: Singleton classes (e.g. Plasma::ToolTipManager) do not
                    work in ruby kde bindings
           Product: kde
           Version: unspecified
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: unassigned-bugs at kde.org
        ReportedBy: adam.ciganek at gmail.com


Version:            (using KDE 4.2.0)
OS:                Linux
Installed from:    Unlisted Binary Package

I'm writing a plasma widget in ruby. I want to use a tooltip, so i access
tooltip manager like this:

Plasma::ToolTipManager.self

But the object returned by this call does not respond to any method it is
suposed to (setContent, registerWidget, ...). I've found also this post which
seems to describe the same problem:

http://mail.kde.org/pipermail/plasma-devel/2009-January/003444.html

the guy says the problem is fixed, but it still doesn't work for me. I'm
attaching a minimal plasma applet code that exposes this bug:


require 'plasma_applet'

module PlasmaAppletMinimal
  class Main < PlasmaScripting::Applet
    def init
      tool_tip = Plasma::ToolTipContent.new
      tool_tip.main_text = 'Whatever...'

      Plasma::ToolTipManager.self.set_content(self, tool_tip)
    end
  end
end


The applet fails with "undefined method set_content for Plasma::ToolTipManager"


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list