Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.1, 1.1.1, and 1.1.2

thgmq: add close button

using gtk.STOCK_CLOSE icon

Changeset 2c39352a6884

Parent ed8ed3c55ee2

by Adrian Buehlmann

Changes to 3 files · Browse files at 2c39352a6884 Showing diff from parent ed8ed3c55ee2 Diff from another changeset...

 
453
454
455
 
456
457
458
 
453
454
455
456
457
458
459
@@ -453,6 +453,7 @@
  self.mqwidget = thgmq.MQWidget(self.repo, accelgroup,   self.tooltips)   self.mqwidget.connect('repo-invalidated', self.repo_invalidated) + self.mqwidget.connect('close-mq', lambda *a: self.enable_mqpanel(False))     def wrapframe(widget):   frame = gtk.Frame()
 
1649
1650
1651
 
1652
1653
1654
 
1649
1650
1651
1652
1653
1654
1655
@@ -1649,6 +1649,7 @@
  self.mqwidget.connect('patch-selected', self.patch_selected)   self.mqwidget.connect('repo-invalidated', self.repo_invalidated)   self.mqwidget.connect('files-dropped', self.files_dropped) + self.mqwidget.connect('close-mq', lambda *a: self.enable_mqpanel(False))     def wrapframe(widget):   frame = gtk.Frame()
 
85
86
87
 
 
 
88
89
90
 
131
132
133
 
 
 
 
134
135
136
 
85
86
87
88
89
90
91
92
93
 
134
135
136
137
138
139
140
141
142
143
@@ -85,6 +85,9 @@
  gobject.TYPE_NONE,   (object, # list of dropped files/dirs   str)) # raw string data + ,'close-mq': (gobject.SIGNAL_RUN_FIRST, + gobject.TYPE_NONE, + ())   }     def __init__(self, repo, accelgroup=None, tooltips=None): @@ -131,6 +134,10 @@
  gtklib.idle_add_single_call(after_init)   self.pack_start(tbar, False, False)   + closebtn = tbar.append_button(gtk.STOCK_CLOSE, _('Close')) + closebtn.connect('clicked', lambda *a: self.emit('close-mq')) + self.btn['close'] = closebtn +   # center pane   mainbox = gtk.VBox()   self.pack_start(mainbox, True, True)