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

stable statusbar: prevent GTK warnings by map() callings

map() function must be called only when it's already shown.

Changeset 732545b975c0

Parent fd5a42da5ce6

by Yuki KODAMA

Changes to one file · Browse files at 732545b975c0 Showing diff from parent fd5a42da5ce6 Diff from another changeset...

 
38
39
40
41
42
 
 
43
44
45
 
75
76
77
78
79
 
 
80
81
82
 
38
39
40
 
41
42
43
44
45
46
 
76
77
78
 
79
80
81
82
83
84
@@ -38,8 +38,9 @@
    def begin(self, msg=_('Running...'), timeout=100):   self.set_text(msg) - self.pbar.map()   self.pbar.show_all() + if self.pbar.get_property('visible'): + self.pbar.map()   self.timeout_id = gobject.timeout_add(timeout, self.pulse_timer)     def end(self, msg=None, unmap=True): @@ -75,8 +76,9 @@
  label.set_text(msg)   if box.get_no_show_all():   box.set_no_show_all(False) - box.map()   box.show_all() + if box.get_property('visible'): + box.map()     def set_idle_text(self, msg):   self.idle_text = msg