bdb9737dca
- fix ibus's tray icon can't show in gnome-shell 3.6 for openSUSE 12.3, add fix-tray-icon-on-gnome-3.6.patch OBS-URL: https://build.opensuse.org/request/show/154966 OBS-URL: https://build.opensuse.org/package/show/M17N/ibus?expand=0&rev=55
24 lines
1.3 KiB
Diff
24 lines
1.3 KiB
Diff
diff -Nur ibus-1.4.2/ui/gtk/panel.py ibus-1.4.2-new/ui/gtk/panel.py
|
|
--- ibus-1.4.2/ui/gtk/panel.py 2012-08-22 22:16:51.000000000 +0800
|
|
+++ ibus-1.4.2-new/ui/gtk/panel.py 2013-02-08 23:57:47.465504005 +0800
|
|
@@ -103,19 +103,6 @@
|
|
|
|
|
|
self.__status_icon = gtk.StatusIcon()
|
|
- # gnome-shell checks XClassHint.res_class with ShellTrayIcon.
|
|
- # gtk_status_icon_set_name() can set XClassHint.res_class .
|
|
- # However gtk_status_icon_new() also calls gtk_window_realize() so
|
|
- # gtk_status_icon_set_visible() needs to be called to set WM_CLASS
|
|
- # so that gtk_window_realize() is called later again.
|
|
- # set_title is for gnome-shell notificationDaemon in bottom right.
|
|
- self.__status_icon.set_visible(False)
|
|
- # gtk_status_icon_set_name() is not available in pygtk2 2.17
|
|
- if hasattr(self.__status_icon, 'set_name'):
|
|
- self.__status_icon.set_name('ibus-ui-gtk')
|
|
- self.__status_icon.set_title(_("IBus Panel"))
|
|
- # Hide icon until bus get the name owner.
|
|
- #self.__status_icon.set_visible(True)
|
|
self.__status_icon.connect("popup-menu", self.__status_icon_popup_menu_cb)
|
|
self.__status_icon.connect("activate", self.__status_icon_activate_cb)
|
|
self.__status_icon.set_from_icon_name(ICON_KEYBOARD)
|