Changeset 23db311e164c…
Parent 904e46b002f1…
by
Changes to one file · Browse files at 23db311e164c Showing diff from parent 904e46b002f1 Diff from another changeset...
@@ -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):
|
Loading...