Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

history: don't attach view menu to allbutton

allbutton gets disabled, when all revisions are loaded (and thus the view menu too).

Fixed by using the old ghost MenuToolButton trick. Unfortunately, this increases
the horizontal distance between the allbutton icon and the black view menu triangle
a bit.

This fixes a bug introduced with recent cf21ae7a63fd on default branch.

Changeset 23db311e164c

Parent 904e46b002f1

by Adrian Buehlmann

Changes to one file · Browse files at 23db311e164c Showing diff from parent 904e46b002f1 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​history.py Stacked
 
83
84
85
86
87
88
 
89
 
 
 
 
 
 
 
 
 
90
91
92
 
83
84
85
 
 
 
86
87
88
89
90
91
92
93
94
95
96
97
98
99
@@ -83,10 +83,17 @@
  self.nextbutton = self.make_toolbutton(gtk.STOCK_GO_DOWN,   _('Load more'), self.more_clicked, tip=_('load more revisions'))   self.allbutton = self.make_toolbutton(gtk.STOCK_GOTO_BOTTOM, - _('Load all'), self.load_all_clicked, menu=self.view_menu(), - tip=_('load all revisions')) - tbar += [sep, self.nextbutton, self.allbutton] + _('Load all'), self.load_all_clicked, tip=_('load all revisions'))   + vmenu = gtk.MenuToolButton('') + vmenu.set_menu(self.view_menu()) + # A MenuToolButton has two parts; a Button and a ToggleButton + # we want to see the togglebutton, but not the button + b = vmenu.child.get_children()[0] + b.unmap() + b.set_sensitive(False) + + tbar += [sep, self.nextbutton, self.allbutton, vmenu]   return tbar     def synch_clicked(self, toolbutton, data):