Skip to content

Commit

Permalink
gitview: Use horizontal scroll bar in the tree view
Browse files Browse the repository at this point in the history
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 <aneesh.kumar@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Aneesh Kumar K.V authored and Junio C Hamano committed Mar 2, 2006
1 parent 2b74cff commit 5aa44d5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions contrib/gitview/gitview
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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)
Expand Down

0 comments on commit 5aa44d5

Please sign in to comment.