OSDN Git Service

Hide the bars after showing the window. not use gobject.idle_add.
authorAiwota Programmer <aiwotaprog@tetteke.tk>
Wed, 6 Sep 2006 23:04:27 +0000 (08:04 +0900)
committerAiwota Programmer <aiwotaprog@tetteke.tk>
Wed, 6 Sep 2006 23:04:27 +0000 (08:04 +0900)
src/FukuiNoNamari/board_window.py
src/FukuiNoNamari/thread_window.py

index 1647a9a..9b43bcc 100644 (file)
@@ -128,8 +128,8 @@ class WinWrap(winwrapbase.WinWrapBase, board_data.BoardData):
                   "on_popup_menu_open_activate": self.on_open_thread}
         self.widget_tree.signal_autoconnect(sigdic)
 
-        self.restore()
         self.window.show()
+        self.restore()
 
         self.created()
 
@@ -498,10 +498,10 @@ class WinWrap(winwrapbase.WinWrapBase, board_data.BoardData):
             self.window.set_default_size(window_width, window_height)
 
             if not toolbar_visible:
-                gobject.idle_add(self.toolbar.parent.hide)
+                self.toolbar.parent.hide()
             if not statusbar_visible:
-                gobject.idle_add(self.statusbar.hide)
+                self.statusbar.hide()
             if not filterbar_visible:
-                gobject.idle_add(self.filterbar.hide)
+                self.filterbar.hide()
         except:
             traceback.print_exc()
index ad7e392..9dbc202 100644 (file)
@@ -130,8 +130,8 @@ class WinWrap(winwrapbase.WinWrapBase):
                               self.on_motion_notify_event)
         self.textview.connect("visibility-notify-event",
                               self.on_visibility_notify_event)
-        self.restore()
         self.window.show()
+        self.restore()
 
         self.created()
 
@@ -607,8 +607,8 @@ class WinWrap(winwrapbase.WinWrapBase):
             self.window.set_default_size(window_width, window_height)
 
             if not toolbar_visible:
-                gobject.idle_add(self.toolbar.parent.hide)
+                self.toolbar.parent.hide()
             if not statusbar_visible:
-                gobject.idle_add(self.statusbar.hide)
+                self.statusbar.hide()
         except:
             traceback.print_exc()