# HG changeset patch # User Yuki KODAMA <endflow....@gmail.com> # Date 1253083432 -32400 # Node ID b2783e4f2a6711fc808789a82b048dfef80db232 # Parent bf32802186972113a416f64378b41f77970fe6f9 synch: prevent blinking of bottom box on start up
Synch dialog updates the visibility of bottom box after finished initializing in finalize_startup() method. By this, we often see a blink of bottom box. diff --git a/tortoisehg/hgtk/synch.py b/tortoisehg/hgtk/synch.py --- a/tortoisehg/hgtk/synch.py +++ b/tortoisehg/hgtk/synch.py @@ -106,7 +106,7 @@ self.tbar.insert(btn, -1) # Base box - basevbox = gtk.VBox() + self.basevbox = basevbox = gtk.VBox() self.add(basevbox) basevbox.pack_start(self.tbar, False, False, 2) @@ -253,6 +253,21 @@ foreground='#900000') basevbox.pack_start(scrolledwindow, True, True) + # statusbar + self.stbar = gtklib.StatusBar() + basevbox.pack_end(self.stbar, False, False, 2) + + # support dropping of repos or bundle files + self.drag_dest_set(gtk.DEST_DEFAULT_ALL, + [("text/uri-list", 0, 1)], gtk.gdk.ACTION_COPY) + self.connect('drag_data_received', self._drag_receive) + + # prepare to show + self.load_settings() + self.update_pull_setting() + gobject.idle_add(self.finalize_startup) + + def create_bottombox(self): self.buttonhbox = gtk.HBox() self.viewpulled = gtk.Button(_('View pulled revisions')) self.viewpulled.connect('clicked', self._view_pulled_changes) @@ -264,23 +279,10 @@ self.buttonhbox.pack_start(self.viewpulled, False, False, 2) self.buttonhbox.pack_start(self.updatetip, False, False, 2) self.buttonhbox.pack_start(self.updatetipcheck, False, False, 2) - basevbox.pack_start(self.buttonhbox, False, False, 2) - - # statusbar - self.stbar = gtklib.StatusBar() - basevbox.pack_start(self.stbar, False, False, 2) - - # support dropping of repos or bundle files - self.drag_dest_set(gtk.DEST_DEFAULT_ALL, - [("text/uri-list", 0, 1)], gtk.gdk.ACTION_COPY) - self.connect('drag_data_received', self._drag_receive) - - # prepare to show - self.load_settings() - self.update_pull_setting() - gobject.idle_add(self.finalize_startup) + self.basevbox.pack_start(self.buttonhbox, False, False, 2) def finalize_startup(self, *args): + self.create_bottombox() self.update_buttons() def pollstdout(*args): while True:
thg-kuy_rev4050.patch
Description: Binary data
------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf
_______________________________________________ Tortoisehg-develop mailing list Tortoisehg-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop