{"thread":{"id":"3494","subject":"gitview: Some window layout changes.","startedAt":"2006-02-28T13:42:18Z","lastAt":"2006-02-28T13:42:18Z","messageCount":1,"participants":["Aneesh Kumar K.V"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"16904","messageId":"4404533A.5070906@gmail.com","threadId":"3494","inReplyTo":null,"subject":"gitview: Some window layout changes.","fromName":"Aneesh Kumar K.V","fromEmail":"aneesh.kumar@gmail.com","sentAt":"2006-02-28T13:42:18Z","receivedAt":"2006-02-28T13:42:18Z","isPatch":false,"sender":{"key":"aneesh.kumar@gmail.com","avatar":"https://gravatar.com/avatar/0621fc0b2f14ead1e9024382f16053a808c148596da30c1b92572fa075621f68?d=mp&s=160"},"body":"\n\nSubject: gitview: Some  window layout changes.\n\nThis makes menubar look nice\n\nSigned-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>\n\n---\n\n contrib/gitview/gitview |   27 +++++++++++++++------------\n 1 files changed, 15 insertions(+), 12 deletions(-)\n\nbc288bd1cd9c70e7eb1e8742527553d1c2dea61d\ndiff --git a/contrib/gitview/gitview b/contrib/gitview/gitview\nindex aded7ed..47ecaa3 100755\n--- a/contrib/gitview/gitview\n+++ b/contrib/gitview/gitview\n@@ -368,7 +368,7 @@ class DiffWindow:\n \t\tsave_menu.connect(\"activate\", self.save_menu_response, \"save\")\n \t\tsave_menu.show()\n \t\tmenu_bar.append(save_menu)\n-\t\tvbox.pack_start(menu_bar, False, False, 2)\n+\t\tvbox.pack_start(menu_bar, expand=False, fill=True)\n \t\tmenu_bar.show()\n \n \t\tscrollwin = gtk.ScrolledWindow()\n@@ -482,19 +482,10 @@ class GitView:\n \n \tdef construct(self):\n \t\t\"\"\"Construct the window contents.\"\"\"\n+\t\tvbox = gtk.VBox()\n \t\tpaned = gtk.VPaned()\n \t\tpaned.pack1(self.construct_top(), resize=False, shrink=True)\n \t\tpaned.pack2(self.construct_bottom(), resize=False, shrink=True)\n-\t\tself.window.add(paned)\n-\t\tpaned.show()\n-\n-\n-\tdef construct_top(self):\n-\t\t\"\"\"Construct the top-half of the window.\"\"\"\n-\t\tvbox = gtk.VBox(spacing=6)\n-\t\tvbox.set_border_width(12)\n-\t\tvbox.show()\n-\n \t\tmenu_bar = gtk.MenuBar()\n \t\tmenu_bar.set_pack_direction(gtk.PACK_DIRECTION_RTL)\n \t\thelp_menu = gtk.MenuItem(\"Help\")\n@@ -506,8 +497,20 @@ class GitView:\n \t\thelp_menu.set_submenu(menu)\n \t\thelp_menu.show()\n \t\tmenu_bar.append(help_menu)\n-\t\tvbox.pack_start(menu_bar, False, False, 2)\n \t\tmenu_bar.show()\n+\t\tvbox.pack_start(menu_bar, expand=False, fill=True)\n+\t\tvbox.pack_start(paned, expand=True, fill=True)\n+\t\tself.window.add(vbox)\n+\t\tpaned.show()\n+\t\tvbox.show()\n+\n+\n+\tdef construct_top(self):\n+\t\t\"\"\"Construct the top-half of the window.\"\"\"\n+\t\tvbox = gtk.VBox(spacing=6)\n+\t\tvbox.set_border_width(12)\n+\t\tvbox.show()\n+\n \n \t\tscrollwin = gtk.ScrolledWindow()\n \t\tscrollwin.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)\n-- \n1.2.3.gc55f-dirty\n\n"}]}