Workaround for autohide problem with metacity
authorPeng Huang <shawn.p.huang@gmail.com>
Sun, 31 Jan 2010 01:21:21 +0000 (09:21 +0800)
committerPeng Huang <shawn.p.huang@gmail.com>
Sun, 31 Jan 2010 01:21:21 +0000 (09:21 +0800)
ui/gtk/languagebar.py

index f8b8665bd35a23b16e8e7748ef5f44d0b706aa9c..41c136d6db6e954cf56d7d531075f0310e74294f 100644 (file)
@@ -309,6 +309,11 @@ class LanguageBar(gtk.Toolbar):
         gtk.Toolbar.show_all(self)
 
     def hide_all(self):
+        try:
+            self.__toplevel.window.lower()
+            self.__toplevel.window.hide_all()
+        except:
+            pass
         x, y = self.__toplevel.get_position()
         self.__toplevel.hide_all()
         gtk.Toolbar.hide_all(self)