ruby bindings

Richard Dale richard.j.dale at gmail.com
Mon Jan 19 19:17:23 CET 2009


On Fri, Jan 9, 2009 at 6:28 AM, 0xDeadC0de <roguestar191 at comcast.net> wrote:

> I think there's a coincidence between the animator and the
> tooltipmanager singletons not working. If I uncomment everything in the
> snippet below it crashes on me. at
> ToolTipManager::self().setContent(icon, data).
>  (I am using older bindings from 4.2b2 still..)
>
> Someone in irc suggested it could be the "self" keyword conflicting with
> the c++ function call, could this be it? (Sorry if I remembered who I'd
> give them credit)

No that works fine - I think this is the same problem with Singletons that
has just been fixed.

-- Richard


>
>
>    def addToolNoLayout(iconString)
>        icon = Plasma::IconWidget.new(@top.mytop)
>        action = Qt::Action.new(KDE::Icon.new(iconString), "",
> @top.mytop)
>        action.setToolTip("test")
>        icon.setAction(action)
>        icon.setMinimumSize(32,32)
>        icon.setMaximumSize(32,32)
> #
> icon.setPreferredSize(icon.sizeFromIconSize(KDE::IconLoader::Toolbar))
> #       puts 'create data'
> #       data = Plasma::ToolTipContent.new()
> #       data.mainText = ("My Title")
> #       data.subText = ("This is a little tooltip")
> #       puts 'add to manager'
> #       Plasma::ToolTipManager::self().setContent(icon, data)
> #       puts 'end'
>
>        return icon
>    end
>
>
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20090119/a78fa84d/attachment.htm 


More information about the Plasma-devel mailing list