Skip to content

Commit 5aa44d5

Browse files
kvaneeshJunio C Hamano
authored andcommitted
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 <aneesh.kumar@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 2b74cff commit 5aa44d5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

contrib/gitview/gitview

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ class GitView:
513513

514514

515515
scrollwin = gtk.ScrolledWindow()
516-
scrollwin.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)
516+
scrollwin.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
517517
scrollwin.set_shadow_type(gtk.SHADOW_IN)
518518
vbox.pack_start(scrollwin, expand=True, fill=True)
519519
scrollwin.show()
@@ -526,9 +526,6 @@ class GitView:
526526
self.treeview.show()
527527

528528
cell = CellRendererGraph()
529-
# Set the default width to 265
530-
# This make sure that we have nice display with large tag names
531-
cell.set_property("width", 265)
532529
column = gtk.TreeViewColumn()
533530
column.set_resizable(True)
534531
column.pack_start(cell, expand=True)

0 commit comments

Comments
 (0)