diff options
author | monsta <[email protected]> | 2016-02-29 17:43:05 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-02-29 17:43:05 +0300 |
commit | 5fc85dd404ee822eef15bae2726d859f23e1a8af (patch) | |
tree | fa7a2659984ca63c17e31e467a35e0661146b1a8 /src/interface.cpp | |
parent | 19090fe133ceb383535070216471f995690f64c8 (diff) | |
download | mate-system-monitor-5fc85dd404ee822eef15bae2726d859f23e1a8af.tar.bz2 mate-system-monitor-5fc85dd404ee822eef15bae2726d859f23e1a8af.tar.xz |
main window: save maximized state in gsettings on exit
and load it on startup
adapted from
https://git.gnome.org/browse/gnome-system-monitor/commit/?id=edf4163bb2e9ad1dd9b8a5b7c7244ccd8753d4b5
Diffstat (limited to 'src/interface.cpp')
-rw-r--r-- | src/interface.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interface.cpp b/src/interface.cpp index ca18c63..1a851aa 100644 --- a/src/interface.cpp +++ b/src/interface.cpp @@ -727,6 +727,9 @@ create_main_window (ProcData *procdata) gtk_window_set_default_size (GTK_WINDOW (app), width, height); gtk_window_move(GTK_WINDOW (app), xpos, ypos); gtk_window_set_resizable (GTK_WINDOW (app), TRUE); + if (procdata->config.maximized) { + gtk_window_maximize(GTK_WINDOW(app)); + } /* create the menubar */ procdata->uimanager = gtk_ui_manager_new (); |