Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

taskbarui: add about button

Changeset 9137e5c9bd56

Parent 814f74cb1f93

by Steve Borho

Changes to one file · Browse files at 9137e5c9bd56 Showing diff from parent 814f74cb1f93 Diff from another changeset...

 
39
40
41
 
 
 
42
43
44
 
 
 
 
 
 
45
46
47
48
49
50
51
52
53
54
 
 
 
 
 
55
56
57
 
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
 
 
 
56
57
58
59
60
61
62
63
64
65
66
67
68
@@ -39,19 +39,30 @@
  frame.add(scrolledwindow)   gobject.timeout_add(10, self.pollq, inputq, textview)   + accelgroup = gtk.AccelGroup() + self.add_accel_group(accelgroup) +   hbbox = gtk.HButtonBox()   hbbox.set_layout(gtk.BUTTONBOX_END)   vbox.pack_start(hbbox, False, False, 2) + + about = gtk.Button(_('About')) + about.connect('clicked', self.about) + key, modifier = gtk.accelerator_parse('Escape') + hbbox.add(about) +   close = gtk.Button(_('Close'))   close.connect('clicked', lambda x: self.destroy()) - - accelgroup = gtk.AccelGroup() - self.add_accel_group(accelgroup)   key, modifier = gtk.accelerator_parse('Escape')   close.add_accelerator('clicked', accelgroup, key, 0,   gtk.ACCEL_VISIBLE)   hbbox.add(close)   + def about(self, button): + from hggtk import about + dlg = about.AboutDialog() + dlg.show_all() +   def pollq(self, queue, textview):   'Poll the input queue'   buf = textview.get_buffer()