Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

history: move small load buttons to statusbar

Changeset b6a88cf86349

Parent ff656ee0ca3a

by Yuki KODAMA

Changes to one file · Browse files at b6a88cf86349 Showing diff from parent ff656ee0ca3a Diff from another changeset...

 
1296
1297
1298
 
 
 
 
 
 
 
 
 
 
 
1299
1300
1301
 
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
 
1542
1543
1544
 
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
 
1538
1539
1540
 
 
 
 
 
 
 
 
 
 
 
 
1541
1542
1543
1544
@@ -1296,6 +1296,17 @@
  self.stbar.append_field('filter')   self.stbar.append_field('rev')   + ## add load buttons to statusbar + self.sttool = gtklib.SlimToolbar(self.tooltips) + self.stbar.append_widget(self.sttool) + more = self.sttool.append_button(gtk.STOCK_GO_DOWN, + _('Load more Revisions'), group='load') + more.connect('clicked', self.more_clicked) + all = self.sttool.append_button(gtk.STOCK_GOTO_BOTTOM, + _('Load all Revisions'), group='load') + all.connect('clicked', self.load_all_clicked) + self.sttool.set_visible('load', not self.show_toolbar) +   # Allocate TreeView instance to use internally   limit = self.limit   if self.opts['limit']: @@ -1527,18 +1538,7 @@
  return vbox     def get_extras(self): - hbox = gtk.HBox() - hbox.pack_start(self.stbar) - self.sttool = gtklib.SlimToolbar(self.tooltips) - hbox.pack_end(self.sttool, False, False) - more = self.sttool.append_button(gtk.STOCK_GO_DOWN, - _('Load more Revisions'), group='load') - more.connect('clicked', self.more_clicked) - all = self.sttool.append_button(gtk.STOCK_GOTO_BOTTOM, - _('Load all Revisions'), group='load') - all.connect('clicked', self.load_all_clicked) - self.sttool.set_visible('load', not self.show_toolbar) - return hbox + return self.stbar     def refresh_on_marker_change(self, oldlen, oldmarkers, newmarkers):   # Note that oldmarkers/newmarkers may be either dicts