summaryrefslogtreecommitdiff
path: root/src/glade-window.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-01-29 16:07:30 +0100
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-01-29 16:07:30 +0100
commit876f8f175af9320450225f3fb6b82a53d1a918d0 (patch)
tree7be3182fe6d5b201cfc0d4bff28169e4cb8235b8 /src/glade-window.c
parent81920d56168a8148b74905f2e8e323922148c6e8 (diff)
downloadglade-876f8f175af9320450225f3fb6b82a53d1a918d0.tar.gz
Ugly hack to restore paned positions
When we maximize the window, usually an idle is enough until it's safe to start manipulating the stored paned window positions. Now, 200ms seems to be enough. This fixes restoring of paned window positions, if you exit Glade cleanly by quitting Glade, it should restore the app in the same state it was (undocked window positions and paned positions)
Diffstat (limited to 'src/glade-window.c')
-rw-r--r--src/glade-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glade-window.c b/src/glade-window.c
index 6dbfe628..0f02b3ea 100644
--- a/src/glade-window.c
+++ b/src/glade-window.c
@@ -2982,7 +2982,7 @@ glade_window_set_initial_size (GladeWindow *window, GKeyFile *config)
if (maximized)
{
gtk_window_maximize (GTK_WINDOW (window));
- g_idle_add ((GSourceFunc) fix_paned_positions_idle, window);
+ g_timeout_add (200, (GSourceFunc) fix_paned_positions_idle, window);
}
if (position.width <= 0 || position.height <= 0)