# HG changeset patch # User Yuki KODAMA <[email protected]> # Date 1252466489 -32400 # Node ID 236444f4e90ec4ea4aa087e03d8431f07c94c741 # Parent ab000f0d44240556464b62a0511f4fcb51321f92 history: add 'Reload completely' command to 'Reload' button's menu
This new command allows to reset 'origtip' internal variable and
disable revision coloring with green means 'new' revisions.
diff --git a/hggtk/history.py b/hggtk/history.py
--- a/hggtk/history.py
+++ b/hggtk/history.py
@@ -68,7 +68,7 @@
gtk.SeparatorToolItem(),
self.make_toolbutton(gtk.STOCK_REFRESH,
_('Re_fresh'),
- self.refresh_clicked,
+ self.refresh_clicked, menu=self.reload_menu(),
tip=_('Reload revision history')),
gtk.SeparatorToolItem(),
]
@@ -563,6 +563,19 @@
m.show_all()
return m
+ def reload_menu(self):
+ m = gtk.Menu()
+ def reload_comp(menuitem):
+ self.origtip = len(self.repo)
+ self.opts['orig-tip'] = self.origtip
+ if self.allbutton.get_active():
+ self.reload_log()
+ else:
+ self.allbutton.set_active(True)
+ m.append(create_menu(_('Reload completely'), reload_comp))
+ m.show_all()
+ return m
+
def get_body(self):
self.gorev_dialog = None
self._menu = self.tree_context_menu()
@@ -630,7 +643,7 @@
self.filterbox = gtk.HBox()
filterbox = self.filterbox
- all = gtk.RadioButton(None, _('all'))
+ self.allbutton = all = gtk.RadioButton(None, _('all'))
all.set_active(True)
all.connect('toggled', self.filter_selected, 'all')
filterbox.pack_start(all, False)
thg-kuy_rev3914.patch
Description: Binary data
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________ Tortoisehg-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop
