summaryrefslogtreecommitdiff
path: root/new/newcontrol_unix.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-12 00:59:32 -0400
committerPietro Gagliardi <[email protected]>2015-04-12 00:59:32 -0400
commit8f6acdc8da577342c9c95577869fe7513b278fb0 (patch)
tree293d6d5a0e82c6c109cffe44464affaa4147e023 /new/newcontrol_unix.c
parent5f3eb6fbfa55bf229023da5606878781b75b504e (diff)
Fixed a major flaw in the GTK+ implementation I only realized now: by calling gtk_widget_show_all() in uiWindowShow(), we override the user's explicit hide settings! Fix it by calling gtk_widget_show() there (to only show the window), and gtk_widget_show_all() in both the new control constructor (to show the new control initially) and in the container constructor (to show that initially too).
Diffstat (limited to 'new/newcontrol_unix.c')
-rw-r--r--new/newcontrol_unix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/new/newcontrol_unix.c b/new/newcontrol_unix.c
index 0f6388b..feedafe 100644
--- a/new/newcontrol_unix.c
+++ b/new/newcontrol_unix.c
@@ -221,6 +221,9 @@ uiControl *uiUnixNewControl(GType type, gboolean inScrolledWindow, gboolean scro
// and let's free everything with the immediate widget
g_signal_connect(s->immediate, "destroy", G_CALLBACK(onDestroy), c);
+ // finally, call gtk_widget_show_all() here to set the initial visibility of the widget
+ gtk_widget_show_all(s->immediate);
+
c->internal = s;
return c;
}