DescriptionUse gtk_status_icon_set_name() only if it is available.
gtk_status_icon_set_name() is not exported to python through pygtk2 <= 2.17,
which is the version from Debian sid and Fedora 14.
>>> import gtk
>>> gtk.pygtk_version
(2, 17, 0)
>>> hasattr(gtk.StatusIcon, 'set_name')
False
This patch checks the availability.
BUG=none
TEST=manual
Patch Set 1 #Patch Set 2 : fix comment #MessagesTotal messages: 3
|