[baobab/wip/gtk4: 5/5] Fix saving window state
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/wip/gtk4: 5/5] Fix saving window state
- Date: Mon, 30 Oct 2017 11:49:29 +0000 (UTC)
commit 6ea616f3714a6a964d636cb28a60f68a0e9ed636
Author: Stefano Facchini <stefano facchini gmail com>
Date: Mon Oct 30 12:36:43 2017 +0100
Fix saving window state
src/baobab-window.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index f45035a..992611e 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -153,7 +153,9 @@ namespace Baobab {
resize (width, height);
window_state_event.connect ((event) => {
- //ui_settings.set_int ("window-state", event.new_window_state);
+ Gdk.WindowState old_state, new_state;
+ event.get_window_state (out old_state, out new_state);
+ ui_settings.set_int ("window-state", new_state);
return false;
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]