diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-02-15 15:27:30 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-02-15 15:27:30 +0100 |
commit | 68c468b1a97c3535ab06674ddbed2eaaf06de64d (patch) | |
tree | c6fbb158683981f2265d9daa57db89de4fbd3b85 | |
parent | 68f784e5c233c4f9f8f3a02e99584f1b77fbec9b (diff) | |
download | poezio-68c468b1a97c3535ab06674ddbed2eaaf06de64d.tar.gz poezio-68c468b1a97c3535ab06674ddbed2eaaf06de64d.tar.bz2 poezio-68c468b1a97c3535ab06674ddbed2eaaf06de64d.tar.xz poezio-68c468b1a97c3535ab06674ddbed2eaaf06de64d.zip |
Remove the resize timer etc, because the resize process
is waaaaaay faster now.
-rw-r--r-- | src/core.py | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/src/core.py b/src/core.py index 4e837e4d..f7a7dc4d 100644 --- a/src/core.py +++ b/src/core.py @@ -104,7 +104,6 @@ class Core(object): else tabs.RosterInfoTab(self) default_tab.on_gain_focus() self.tabs = [default_tab] - self.resize_timer = None self.previous_tab_nb = 0 self.own_nick = config.get('own_nick', '') or self.xmpp.boundjid.user # global commands, available from all tabs @@ -671,29 +670,10 @@ class Core(object): def call_for_resize(self): """ - Starts a very short timer. If no other terminal resize - occured in this delay then poezio is REALLY resize. - This is to avoid multiple unnecessary software resizes (this - can be heavy on resource on slow computers or networks) - """ - with resize_lock: - if self.resize_timer: - # a recent terminal resize occured. - # Cancel the programmed software resize - self.resize_timer.cancel() - # add the new timer - self.resize_timer = threading.Timer(0.05, self.resize_window) - self.resize_timer.start() - - def resize_window(self): - """ - Resize the whole screen + Called when we want to resize the screen """ with resize_lock: for tab in self.tabs: - # Each tab will be resized the next - # time it will be refresh()'ed - # Making the resize process faster tab.need_resize = True self.refresh_window() @@ -1057,7 +1037,7 @@ class Core(object): """ """ theme.reload_theme() - self.resize_window() + self.refresh_window() def command_win(self, arg): """ |