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/window_unix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'new/window_unix.c') diff --git a/new/window_unix.c b/new/window_unix.c index c4ec6d4..d627335 100644 --- a/new/window_unix.c +++ b/new/window_unix.c @@ -68,7 +68,8 @@ void uiWindowSetTitle(uiWindow *w, const char *title) void uiWindowShow(uiWindow *w) { - gtk_widget_show_all(w->widget); + // don't use gtk_widget_show_all(); that will override user hidden settings + gtk_widget_show(w->widget); } void uiWindowHide(uiWindow *w) -- cgit v1.2.3