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: use enable_cmd

Changeset e040756219ba

Parent d98fe7c7f8b4

by Adrian Buehlmann

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

 
177
178
179
180
 
181
182
183
 
191
192
193
194
 
195
196
197
 
302
303
304
305
306
307
308
 
 
309
310
311
 
431
432
433
434
435
 
 
436
437
438
 
177
178
179
 
180
181
182
183
 
191
192
193
 
194
195
196
197
 
302
303
304
 
 
 
 
305
306
307
308
309
 
429
430
431
 
 
432
433
434
435
436
@@ -177,7 +177,7 @@
    def synch_clicked(self, toolbutton, data):   def sync_closed(dialog): - self.get_toolbutton('synchronize').set_sensitive(True) + self.enable_cmd('synchronize', True)     def synch_callback(parents):   self.repo.invalidate() @@ -191,7 +191,7 @@
  dlg.set_notify_func(synch_callback, parents)   dlg.connect('destroy', sync_closed)   dlg.show_all() - self.get_toolbutton('synchronize').set_sensitive(False) + self.enable_cmd('synchronize', False)     def toggle_view_column(self, button, property):   active = button.get_active() @@ -302,10 +302,8 @@
  if self.graphcol != show:   self.graphcol = show   reload = True - item = self.get_menuitem('compact-graph') - item.set_sensitive(self.graphcol) - item = self.get_menuitem('color-by-branch') - item.set_sensitive(self.graphcol) + self.enable_cmd('compact-graph', self.graphcol) + self.enable_cmd('color-by-branch', self.graphcol)   else:   self.graphview.set_property(property, show)   self.showcol[property] = show @@ -431,8 +429,8 @@
  # persisted data   pass   - self.get_menuitem('compact-graph').set_sensitive(self.graphcol) - self.get_menuitem('color-by-branch').set_sensitive(self.graphcol) + self.enable_cmd('compact-graph', self.graphcol) + self.enable_cmd('color-by-branch', self.graphcol)     item = self.get_menuitem('use-proxy-server')   if ui.ui().config('http_proxy', 'host'):