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: move load buttons into toolbar

There is enough free room in the toolbar for these buttons.
This reduces the height of the new filter bar.
And we get labels describing the purpose of those buttons.

Changeset 5a8b11497fc9

Parent f15fca66b303

by Adrian Buehlmann

Changes to one file · Browse files at 5a8b11497fc9 Showing diff from parent f15fca66b303 Diff from another changeset...

Change 1 of 3 Show Entire File hggtk/​history.py Stacked
 
78
79
80
 
 
 
 
 
 
 
81
82
83
 
107
108
109
110
 
111
112
113
 
114
115
116
 
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
 
78
79
80
81
82
83
84
85
86
87
88
89
90
 
114
115
116
 
117
118
119
 
120
121
122
123
 
497
498
499
 
 
 
 
500
501
 
 
 
 
 
 
 
502
503
504
@@ -78,6 +78,13 @@
  self.synch_clicked,   tip=_('Launch synchronize tool'))   tbar += [gtk.SeparatorToolItem(), self.synctb] + + 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, tip=_('load all revisions')) + tbar += [gtk.SeparatorToolItem(), self.nextbutton, self.allbutton] +   return tbar     def synch_clicked(self, toolbutton, data): @@ -107,10 +114,10 @@
  active = button.get_active()   self.graphview.set_property(property, active)   - def more_clicked(self, button): + def more_clicked(self, button, data=None):   self.graphview.next_revision_batch(self.limit)   - def load_all_clicked(self, button): + def load_all_clicked(self, button, data=None):   self.graphview.load_all_revisions()   self.nextbutton.set_sensitive(False)   self.allbutton.set_sensitive(False) @@ -490,19 +497,8 @@
  b.unmap()   b.set_sensitive(False)   - self.nextbutton = gtk.ToolButton(gtk.STOCK_GO_DOWN) - self.nextbutton.connect('clicked', self.more_clicked) - self.allbutton = gtk.ToolButton(gtk.STOCK_GOTO_BOTTOM) - self.allbutton.connect('clicked', self.load_all_clicked)   filterbox.pack_start(gtk.Label(''), True, True) # expanding blank label   filterbox.pack_start(self.colmenu, False, False) - filterbox.pack_start(self.nextbutton, False, False) - filterbox.pack_start(self.allbutton, False, False) - - self.nextbutton.set_tooltip(self.tooltips, - _('show next %d revisions') % self.limit) - self.allbutton.set_tooltip(self.tooltips, - _('show all remaining revisions'))     vbox = gtk.VBox()   vbox.pack_start(filterbox, False, False, 0)