[baobab/wip/gtk4: 13/16] foo
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/wip/gtk4: 13/16] foo
- Date: Sun, 29 Oct 2017 18:07:22 +0000 (UTC)
commit c777cb68ff93a42b7bce21b170cf5e01b0232854
Author: Stefano Facchini <stefano facchini gmail com>
Date: Fri Sep 29 12:35:42 2017 +0200
foo
src/baobab-window.vala | 22 +++++++++++++---------
1 files changed, 13 insertions(+), 9 deletions(-)
---
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index 75838d1..d0ecae7 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -149,23 +149,29 @@ namespace Baobab {
}
int width, height;
+ get_size (out width, out height);
+ print("size = %dx%d\n", width, height);
ui_settings.get ("window-size", "(ii)", out width, out height);
+ print("settings = %dx%d\n", width, height);
resize (width, height);
+ get_size (out width, out height);
+ print("size = %dx%d\n", width, height);
window_state_event.connect ((event) => {
//ui_settings.set_int ("window-state", event.new_window_state);
return false;
});
- configure_event.connect ((event) => {
- if (!(Gdk.WindowState.MAXIMIZED in get_window ().get_state ())) {
- get_size (out width, out height);
- ui_settings.set ("window-size", "(ii)", width, height);
- }
- return false;
- });
+ //size_allocate.connect (() => {
+ // if (get_realized () && !(Gdk.WindowState.MAXIMIZED in get_window ().get_state ())) {
+ // get_size (out width, out height);
+ //print("size = %dx%d\n", width, height);
+ // ui_settings.set ("window-size", "(ii)", width, height);
+ // }
+ //});
destroy.connect (() => {
+ print("destroy\n");
ui_settings.apply ();
});
@@ -192,8 +198,6 @@ namespace Baobab {
}
return Gdk.EVENT_PROPAGATE;
});
-
- show ();
}
void on_show_home_page_activate () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]