OSDN Git Service

not visible at initializing top level window. set default size before showing.
authorAiwota Programmer <aiwotaprog@tetteke.tk>
Thu, 31 Aug 2006 16:09:09 +0000 (01:09 +0900)
committerAiwota Programmer <aiwotaprog@tetteke.tk>
Thu, 31 Aug 2006 16:09:09 +0000 (01:09 +0900)
src/Hage1/board_window.py
src/Hage1/thread_window.py
src/data/board_window.glade
src/data/thread_window.glade

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()
index 1d9e761..94969ea 100644 (file)
@@ -171,13 +171,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_compose_clicked(self, widget):
         import submit_window
         submit_window.open(self.bbs_type.get_thread_uri())
index 4733053..0e40819 100644 (file)
@@ -6,7 +6,6 @@
 <requires lib="bonobo"/>
 
 <widget class="GnomeApp" id="board_window">
-  <property name="visible">True</property>
   <property name="title" translatable="yes">board_window</property>
   <property name="type">GTK_WINDOW_TOPLEVEL</property>
   <property name="window_position">GTK_WIN_POS_NONE</property>
index 3878b6a..ab7b52d 100644 (file)
@@ -6,7 +6,6 @@
 <requires lib="bonobo"/>
 
 <widget class="GnomeApp" id="thread_window">
-  <property name="visible">True</property>
   <property name="type">GTK_WINDOW_TOPLEVEL</property>
   <property name="window_position">GTK_WIN_POS_NONE</property>
   <property name="modal">False</property>