diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-03-27 01:13:28 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-03-26 19:26:43 -0700 |
commit | c2520125d1ec6fa40302a0d8820b26df5edca82d (patch) | |
tree | 804bccdc9eef098a82254eadb3a2a3570f2a6b06 /profile.c | |
parent | ed9c9051d297056f166d7e4a3bb427d3d86b2cf1 (diff) | |
download | subsurface-c2520125d1ec6fa40302a0d8820b26df5edca82d.tar.gz |
Store the main window maximized state in the configuration
In save_window_geometry() use gdk_window_get_state() to retrieve
the window maximized state and store it in the user configuration.
Then in restore_window_geometry() restore the maximized state with
gtk_window_maximize(), if needed.
To achieve good results we also need to override "window-state-event"
for the main window and define an extra couple of configuration parameters:
"vpane_position_maximized" and "hpane_position_maximized".
Then store two different pane states for maximized and restored window each
time the user makes a switch.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
0 files changed, 0 insertions, 0 deletions