GNOME Bugzilla – Bug 569823
get_popup_component does not return correct object
Last modified: 2009-01-31 22:57:35 UTC
Please describe the problem: gnomeapplet.Applet.get_popup_component does not return a useful object - none of the BonoboUIComponent methods are available. Steps to reproduce: 1. import gnomeapplet 2. dir(gnomeapplet.Applet.get_popup_component()) Actual results: dir() only shows the gobject attributes Expected results: dir() to show the bonobo.ui.Component attributes Does this happen every time? yes Other information: The attached patch fixes the issue for me. Note that this could be necessary for other objects than the bonobo.ui.Component.
Created attachment 127540 [details] [review] patch against gnomeapplet/applet.override, to import bonobo.ui.Component
The bug exists, but the patch could be simplified. All you need to do is import the module bonobo.ui, nothing more. And you can even do it in your python program, so you don't have to wait for the patch to be deployed :-)
Uhoh, I thought I tried that, but you are right, that works around it for me. Not sure whether the issue still stands then.
Yeah, I think it's an issue, things should "just work", and it's easy to fix.