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: override gdialog's show_toolbar_on_start

Previously, the toolbar was visisble for a short period on
startup of the dialog even if it must be hidden per the settings.

This eliminates the hackish call to gtklib.idle_add_single_call
in prepare_display.

Changeset 3916edcaf326

Parent a95a9ef8c7e5

by Adrian Buehlmann

Changes to one file · Browse files at 3916edcaf326 Showing diff from parent a95a9ef8c7e5 Diff from another changeset...

 
257
258
259
260
 
261
262
263
 
452
453
454
455
456
457
458
459
460
461
 
552
553
554
 
 
 
555
556
557
 
257
258
259
 
260
261
262
263
 
452
453
454
 
 
 
 
455
456
457
 
548
549
550
551
552
553
554
555
556
@@ -257,7 +257,7 @@
    def toggle_show_toolbar(self, button):   self.show_toolbar = button.get_active() - self.toolbar.set_property('visible', self.show_toolbar) + self._show_toolbar(self.show_toolbar)     def more_clicked(self, button, data=None):   self.graphview.next_revision_batch(self.limit) @@ -452,10 +452,6 @@
  opts['pats'] = self.pats   self.reload_log(**opts)   - # unfortunately, idle_add is needed here - gtklib.idle_add_single_call(self.toolbar.set_property, - 'visible', self.show_toolbar) -   self.filterbox.set_property('visible', self.show_filterbar)   self.filterbox.set_no_show_all(True)   self.syncbox.set_property('visible', self.show_syncbar) @@ -552,6 +548,9 @@
  default_co = 'graph rev id branch msg user date utc age tag'   self.column_order = settings.get('column-order', default_co)   + def show_toolbar_on_start(self): + return self.show_toolbar +   def refresh_model(self):   'Refresh data in the history model, without reloading graph'   if self.graphview.model: