[meld] meldwindow: Rearrange window state saving
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] meldwindow: Rearrange window state saving
- Date: Fri, 30 Sep 2016 23:28:40 +0000 (UTC)
commit 80652e2c9b29ee9b1fe2ac516d0daaeae9bf98df
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Oct 1 07:09:40 2016 +1000
meldwindow: Rearrange window state saving
meld/meldwindow.py | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/meld/meldwindow.py b/meld/meldwindow.py
index 9b92fd7..9fd86f4 100644
--- a/meld/meldwindow.py
+++ b/meld/meldwindow.py
@@ -230,15 +230,18 @@ class MeldWindow(gnomeglade.Component):
self.widget.connect("drag_data_received",
self.on_widget_drag_data_received)
- self.should_close = False
- self.idle_hooked = 0
- self.scheduler = task.LifoScheduler()
- self.scheduler.connect("runnable", self.on_scheduler_runnable)
+ # Handle saved window size and state
window_size = settings.get_value('window-size')
self.widget.set_default_size(window_size[0], window_size[1])
window_state = settings.get_string('window-state')
if window_state == 'maximized':
self.widget.maximize()
+
+ self.should_close = False
+ self.idle_hooked = 0
+ self.scheduler = task.LifoScheduler()
+ self.scheduler.connect("runnable", self.on_scheduler_runnable)
+
self.ui.ensure_update()
self.diff_handler = None
self.undo_handlers = tuple()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]