[glade] Ugly hack to restore paned positions
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] Ugly hack to restore paned positions
- Date: Fri, 29 Jan 2016 15:10:57 +0000 (UTC)
commit 876f8f175af9320450225f3fb6b82a53d1a918d0
Author: Tristan Van Berkom <tristan vanberkom codethink co uk>
Date: Fri Jan 29 16:07:30 2016 +0100
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)
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 6dbfe62..0f02b3e 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]