From: Aneesh Kumar K.V Date: Thu, 2 Mar 2006 04:29:53 +0000 (+0530) Subject: gitview: Use horizontal scroll bar in the tree view X-Git-Tag: v1.3.0-rc1~104 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5aa44d5;p=git.git gitview: Use horizontal scroll bar in the tree view Earlier we set up the window to never scroll horizontally, which made it harder to use on a narrow screen. This patch allows scrollbar to be used as needed by Gtk Signed-off-by: Aneesh Kumar K.V Signed-off-by: Junio C Hamano --- diff --git a/contrib/gitview/gitview b/contrib/gitview/gitview index ea05cd424..de9f3f3c7 100755 --- a/contrib/gitview/gitview +++ b/contrib/gitview/gitview @@ -513,7 +513,7 @@ class GitView: scrollwin = gtk.ScrolledWindow() - scrollwin.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC) + scrollwin.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) scrollwin.set_shadow_type(gtk.SHADOW_IN) vbox.pack_start(scrollwin, expand=True, fill=True) scrollwin.show() @@ -526,9 +526,6 @@ class GitView: self.treeview.show() cell = CellRendererGraph() - # Set the default width to 265 - # This make sure that we have nice display with large tag names - cell.set_property("width", 265) column = gtk.TreeViewColumn() column.set_resizable(True) column.pack_start(cell, expand=True)