GNOME Bugzilla – Bug 597842
Uses libgnome (python bindings) which is deprecated
Last modified: 2010-04-27 21:03:33 UTC
libgnome is deprecated (and so are the python bindings). The invest applet uses it in two places: about.py: from gnome import url_show gtk.about_dialog_set_email_hook(lambda dialog, email: url_show("mailto:%s" % email)) and invest-applet.py: if standalone: import gnome gnome.init(invest.defs.PACKAGE, invest.defs.VERSION)
gnome.show_url -> gtk.show_uri (note the change from url to uri, which is probably why a search for it didn't find it) gnome.init can probably be dropped completely. Officially it is replaced with gnome_program_init (from the libgnomeui library), but looking at the description of what that function does, I think its safe to not use it.
Created attachment 151672 [details] [review] removes the libgnome dependency from the sources Changed the sources accordingly. Does the make framework have to be adopted? I did not find anything related in the invest project.
ping, Could this get a review?
Works for me.
Review of attachment 151672 [details] [review]: Tested here too and all seems to work ok. Only a little comment: ::: invest-applet/invest/about.py @@ +8,1 @@ +gtk.about_dialog_set_email_hook(lambda dialog, email: gtk.show_uri(None, "mailto:%s" % email, gtk.gdk.CURRENT_TIME)) You can remove this line. The default handler is ok
Comment on attachment 151672 [details] [review] removes the libgnome dependency from the sources committed the Enrico with my comments ;) commit 169b8f99e370f1577593ef5071c33d8ec641f4ee