After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 569823 - get_popup_component does not return correct object
get_popup_component does not return correct object
Status: RESOLVED FIXED
Product: gnome-python-desktop
Classification: Deprecated
Component: gnomeapplet
unspecified
Other All
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2009-01-30 13:46 UTC by Kjell Braden
Modified: 2009-01-31 22:57 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
patch against gnomeapplet/applet.override, to import bonobo.ui.Component (392 bytes, patch)
2009-01-30 13:49 UTC, Kjell Braden
none Details | Review

Description Kjell Braden 2009-01-30 13:46:14 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.
Comment 1 Kjell Braden 2009-01-30 13:49:22 UTC
Created attachment 127540 [details] [review]
patch against gnomeapplet/applet.override, to import bonobo.ui.Component
Comment 2 Gustavo Carneiro 2009-01-30 19:03:37 UTC
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 :-)
Comment 3 Kjell Braden 2009-01-30 19:10:02 UTC
Uhoh, I thought I tried that, but you are right, that works around it for me. Not sure whether the issue still stands then.
Comment 4 Gustavo Carneiro 2009-01-30 19:18:48 UTC
Yeah, I think it's an issue, things should "just work", and it's easy to fix.