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

Commit: 3de22691b659e3e3305ca589873c01a31d5373e7
    https://github.com/ibus/ibus/commit/3de22691b659e3e3305ca589873c01a31d5373e7
Author: Peng Huang <[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


-- 
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

回复