diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-01-29 16:07:30 +0100 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-01-29 16:07:30 +0100 |
commit | 876f8f175af9320450225f3fb6b82a53d1a918d0 (patch) | |
tree | 7be3182fe6d5b201cfc0d4bff28169e4cb8235b8 /src | |
parent | 81920d56168a8148b74905f2e8e323922148c6e8 (diff) | |
download | glade-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')
-rw-r--r-- | src/glade-window.c | 2 |
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) |