From 8f6acdc8da577342c9c95577869fe7513b278fb0 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 12 Apr 2015 00:59:32 -0400 Subject: 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). --- new/container_unix.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'new/container_unix.c') diff --git a/new/container_unix.c b/new/container_unix.c index 5ee421c..ec5d2f0 100644 --- a/new/container_unix.c +++ b/new/container_unix.c @@ -117,7 +117,12 @@ static void uiContainer_class_init(uiContainerClass *class) GtkWidget *newContainer(void) { - return GTK_WIDGET(g_object_new(uiContainerType, NULL)); + GtkWidget *w; + + w = GTK_WIDGET(g_object_new(uiContainerType, NULL)); + // call gtk_widget_show_all() here to make the container visible + gtk_widget_show_all(w); + return w; } void updateParent(uintptr_t parent) -- cgit v1.2.3