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

history: refactoring: rename to FilterBox

Changeset b10eee173dd1

Parent 711556907501

by Yuki KODAMA

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

 
29
30
31
32
 
33
34
35
 
115
116
117
118
 
119
120
121
 
377
378
379
380
381
 
 
382
383
384
 
698
699
700
701
702
 
 
703
704
705
 
1286
1287
1288
1289
 
1290
1291
1292
1293
1294
1295
 
 
 
 
1296
1297
1298
1299
1300
1301
1302
 
 
 
 
 
 
1303
1304
 
1305
1306
1307
 
1317
1318
1319
1320
 
1321
1322
1323
 
29
30
31
 
32
33
34
35
 
115
116
117
 
118
119
120
121
 
377
378
379
 
 
380
381
382
383
384
 
698
699
700
 
 
701
702
703
704
705
 
1286
1287
1288
 
1289
1290
1291
 
 
 
 
1292
1293
1294
1295
1296
 
 
 
 
 
 
1297
1298
1299
1300
1301
1302
1303
 
1304
1305
1306
1307
 
1317
1318
1319
 
1320
1321
1322
1323
@@ -29,7 +29,7 @@
 from tortoisehg.hgtk import archive, changeset, thgconfig, thgmq, histdetails  from tortoisehg.hgtk import statusbar, bookmark, thgimport   -class FilterBox(gtklib.SlimToolbar): +class FilterBar(gtklib.SlimToolbar):   'Filter Toolbar for repository log'     def __init__(self, tooltips, filter_mode, branch_names): @@ -115,7 +115,7 @@
  self.currevid = None   self.origtip = len(self.repo)   self.ready = False - self.filterbox = None + self.filterbar = None   self.details_model = None   self.syncbox = None   self.filteropts = None @@ -377,8 +377,8 @@
    def toggle_show_filterbar(self, button):   self.show_filterbar = button.get_active() - if self.filterbox is not None: - self.filterbox.set_property('visible', self.show_filterbar) + if self.filterbar is not None: + self.filterbar.set_property('visible', self.show_filterbar)     def toggle_show_syncbar(self, button):   self.show_syncbar = button.get_active() @@ -698,8 +698,8 @@
  else:   self.reload_log(**opts)   - self.filterbox.set_property('visible', self.show_filterbar) - self.filterbox.set_no_show_all(True) + self.filterbar.set_property('visible', self.show_filterbar) + self.filterbar.set_no_show_all(True)   self.syncbox.set_property('visible', self.show_syncbar)   self.syncbox.set_no_show_all(True)   @@ -1286,22 +1286,22 @@
  stop.connect('clicked', self.stop_clicked)     # filter bar - self.filterbox = FilterBox(self.tooltips, + self.filterbar = FilterBar(self.tooltips,   self.filter_mode,   hglib.getlivebranch(self.repo)) - filterbox = self.filterbox - self.ancestrybutton = filterbox.ancestry - self.hidemerges = filterbox.hidemerges - self.branchbutton = filterbox.branches + filterbar = self.filterbar + self.ancestrybutton = filterbar.ancestry + self.hidemerges = filterbar.hidemerges + self.branchbutton = filterbar.branches   self.lastbranchrow = None - self.branchcombo = filterbox.branchcombo - self.custombutton = filterbox.custombutton - self.filter_mode = filterbox.filter_mode - self.filtercombo = filterbox.filtercombo - self.filterentry = filterbox.entry - self.entrycombo = filterbox.entrycombo + self.branchcombo = filterbar.branchcombo + self.custombutton = filterbar.custombutton + self.filter_mode = filterbar.filter_mode + self.filtercombo = filterbar.filtercombo + self.filterentry = filterbar.entry + self.entrycombo = filterbar.entrycombo   - fcon = self.filterbox.connect + fcon = self.filterbar.connect   fsel = self.filter_selected   fcon('all_toggled', fsel, 'all')   fcon('tagged_toggled', fsel, 'tagged') @@ -1317,7 +1317,7 @@
    midpane = gtk.VBox()   midpane.pack_start(syncbox, False) - midpane.pack_start(filterbox, False) + midpane.pack_start(filterbar, False)   midpane.pack_start(self.graphview)   midpane.show_all()