OSDN Git Service

Fix window size does not restore. use idle_add again and set priority high.
authorAiwota Programmer <aiwotaprog@tetteke.tk>
Wed, 6 Sep 2006 23:25:36 +0000 (08:25 +0900)
committerAiwota Programmer <aiwotaprog@tetteke.tk>
Wed, 6 Sep 2006 23:25:36 +0000 (08:25 +0900)
src/FukuiNoNamari/board_window.py
src/FukuiNoNamari/thread_window.py

index 9b43bcc..d7429ee 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.window.show()
         self.restore()
+        self.window.show()
 
         self.created()
 
@@ -498,10 +498,13 @@ class WinWrap(winwrapbase.WinWrapBase, board_data.BoardData):
             self.window.set_default_size(window_width, window_height)
 
             if not toolbar_visible:
-                self.toolbar.parent.hide()
+                gobject.idle_add(self.toolbar.parent.hide,
+                                 priority=gobject.PRIORITY_HIGH)
             if not statusbar_visible:
-                self.statusbar.hide()
+                gobject.idle_add(self.statusbar.hide,
+                                 priority=gobject.PRIORITY_HIGH)
             if not filterbar_visible:
-                self.filterbar.hide()
+                gobject.idle_add(self.filterbar.hide,
+                                 priority=gobject.PRIORITY_HIGH)
         except:
             traceback.print_exc()
index 9dbc202..6c1d3d3 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.window.show()
         self.restore()
+        self.window.show()
 
         self.created()
 
@@ -607,8 +607,10 @@ class WinWrap(winwrapbase.WinWrapBase):
             self.window.set_default_size(window_width, window_height)
 
             if not toolbar_visible:
-                self.toolbar.parent.hide()
+                gobject.idle_add(self.toolbar.parent.hide,
+                                 priority=gobject.PRIORITY_HIGH)
             if not statusbar_visible:
-                self.statusbar.hide()
+                gobject.idle_add(self.statusbar.hide,
+                                 priority=gobject.PRIORITY_HIGH)
         except:
             traceback.print_exc()