Branch: refs/heads/master
Home:   https://github.com/ibus/ibus

Commit: ef2be0415bbe948ce4be39b8a5d2bc60c3384bb2
    https://github.com/ibus/ibus/commit/ef2be0415bbe948ce4be39b8a5d2bc60c3384bb2
Author: Daiki Ueno <[email protected]>
Date:   2011-03-29 (Tue, 29 Mar 2011)

Changed paths:
  M ui/gtk/panel.py

Log Message:
-----------
Use 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

Review URL: http://codereview.appspot.com/4327042
Patch from Daiki Ueno <[email protected]>.


-- 
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en

回复