Mercurial > pidgin
view plugins/mono/BooPlugin.boo @ 11756:f54c680d835c
[gaim-migrate @ 14047]
So. This fixes the status box on Gtk 2.2. Honestly, I'm not sure why or how.
It appears that trying to use the status box itself as the widget to pass to
gtk_widget_render_icon() causes things to get horribly confused or corrupted,
with some very bizarre side effects that I never really managed to debug. (I
assume it's somehow related to the fact that this code is all being called
from within the status box's own init function).
So I just used the status box's vbox instead, and bingo, it no longer lists
"Available" a billion times in the dropdown.
I've been trying to nail this issue on and off since the day the status box
landed in CVS. I'm pleased to have it working now, but also annoyed it took
so long and isn't really understandable.
I wonder how much is broken on Gtk 2.0 now?
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sun, 23 Oct 2005 17:12:52 +0000 |
parents | a3302d271199 |
children |
line wrap: on
line source
import Gaim class BooPlugin(GaimPlugin): def handle(*args as (object)): b as Buddy b = args[0] Debug.debug(Debug.INFO, "booplugin", "Boo Plugin knows that " + b.Alias + " is away\n") override def Load(): Debug.debug(Debug.INFO, "booplugin", "loading...\n") BuddyList.OnBuddyAway.connect(self, handle) override def Unload(): Debug.debug(Debug.INFO, "booplugin", "unloading...\n") override def Destroy(): Debug.debug(Debug.INFO, "booplugin", "destroying...\n") override def Info(): return GaimPluginInfo("Boo Plugin", "0.1", "Test Boo Plugin", "Longer Description", "Eoin Coffey", "urled")