OSDN Git Service

not visible at initializing top level window. set default size before showing.
[fukui-no-namari/fukui-no-namari.git] / src / Hage1 / board_window.py
index 862b454..eaa565f 100644 (file)
@@ -119,13 +119,15 @@ class WinWrap:
             self.gconf_key_base + "window_width")
         height = self.gconf_client.get_int(
             self.gconf_key_base + "window_height")
-        self.window.resize(width, height)
+        self.window.set_default_size(width, height)
 
         if not self.gconf_client.get_bool(self.gconf_key_base + "toolbar"):
             self.toolbar.parent.hide()
         if not self.gconf_client.get_bool(self.gconf_key_base + "statusbar"):
             self.statusbar.hide()
 
+        self.window.show()
+
     def on_toolbar_activate(self, widget):
         if self.toolbar.parent.get_property("visible"):
             self.toolbar.parent.hide()