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: replace MQ icon on toolbar

add 'menupatch.ico' (from TortoiseSVN project)

Changeset 73385d42a916

Parent ed4c2264d6c5

by Yuki KODAMA

Changes to 3 files · Browse files at 73385d42a916 Showing diff from parent ed4c2264d6c5 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​gdialog.py Stacked
 
285
286
287
288
289
 
 
290
291
292
 
297
298
299
 
 
 
 
 
 
300
301
302
 
285
286
287
 
 
288
289
290
291
292
 
297
298
299
300
301
302
303
304
305
306
307
308
@@ -285,8 +285,8 @@
  return cnt     - def make_toolbutton(self, stock, label, handler, - userdata=None, menu=None, tip=None, toggle=False): + def make_toolbutton(self, stock, label, handler, userdata=None, + menu=None, tip=None, toggle=False, icon=None):   if menu:   tbutton = gtk.MenuToolButton(stock)   tbutton.set_menu(menu) @@ -297,6 +297,12 @@
    if tip:   tbutton.set_tooltip(self.tooltips, tip) + if icon: + path = paths.get_tortoise_icon(icon) + if path: + image = gtk.Image() + image.set_from_file(path) + tbutton.set_icon_widget(image)   tbutton.set_use_underline(True)   tbutton.set_label(label)   tbutton.connect('clicked', handler, userdata)
Change 1 of 1 Show Entire File hggtk/​history.py Stacked
 
83
84
85
86
 
 
87
88
89
 
83
84
85
 
86
87
88
89
90
@@ -83,7 +83,8 @@
  _('MQ'),   self.mq_clicked,   tip=_('Toggle MQ panel'), - toggle=True) + toggle=True, + icon='menupatch.ico')   tbar += [self.mqtb, gtk.SeparatorToolItem()]   self.settingtb = self.make_toolbutton(gtk.STOCK_PREFERENCES,   _('Configure'),
Added image