summaryrefslogtreecommitdiffstats
path: root/ui/gtk/languagebar.py
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gtk/languagebar.py')
-rw-r--r--ui/gtk/languagebar.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/gtk/languagebar.py b/ui/gtk/languagebar.py
index 65eb2e5..7a8a106 100644
--- a/ui/gtk/languagebar.py
+++ b/ui/gtk/languagebar.py
@@ -78,7 +78,7 @@ class LanguageBar(gtk.Toolbar):
self.insert(self.__handle, -1)
# create input methods menu
- prop = ibus.Property(name = "", type = ibus.PROP_TYPE_TOGGLE, icon = "ibus", tooltip = _("Switch engine"))
+ prop = ibus.Property(key = "", type = ibus.PROP_TYPE_TOGGLE, icon = "ibus", tooltip = _("Switch engine"))
self.__im_menu = ToggleToolButton(prop)
self.__im_menu.set_homogeneous(False)
self.__im_menu.connect("toggled", self.__im_menu_toggled_cb)
@@ -192,6 +192,8 @@ class LanguageBar(gtk.Toolbar):
self.__im_menu.set_sensitive(False)
if self.__auto_hide:
self.hide_all()
+ else:
+ self.show_all()
gobject.type_register(LanguageBar, "IBusLanguageBar")