From: Arun Persaud Date: Tue, 19 Feb 2013 03:55:20 +0000 (-0800) Subject: fix OK-response in gtk dialogs, see c7f8df124 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=d2174be3bdd0752499ae0d448f6f9d5c649e2b63;p=xboard.git fix OK-response in gtk dialogs, see c7f8df124 the fix in c7f8df124 needs to be applied to both of those if cases --- diff --git a/gtk/xoptions.c b/gtk/xoptions.c index 8b231f9..9687090 100644 --- a/gtk/xoptions.c +++ b/gtk/xoptions.c @@ -1506,12 +1506,14 @@ printf("n=%d, h=%d, w=%d\n",n,height,width); /* hide OK/cancel buttons */ if(!topLevel) - if((option[i].min & NO_OK)) { - actionarea = gtk_dialog_get_action_area(GTK_DIALOG(dialog)); - gtk_widget_hide(actionarea); - } else if((option[i].min & NO_CANCEL)) { - button = gtk_dialog_get_widget_for_response(GTK_DIALOG(dialog), GTK_RESPONSE_REJECT); - gtk_widget_hide(button); + { + if((option[i].min & NO_OK)) { + actionarea = gtk_dialog_get_action_area(GTK_DIALOG(dialog)); + gtk_widget_hide(actionarea); + } else if((option[i].min & NO_CANCEL)) { + button = gtk_dialog_get_widget_for_response(GTK_DIALOG(dialog), GTK_RESPONSE_REJECT); + gtk_widget_hide(button); + } g_signal_connect (dialog, "response", G_CALLBACK (GenericPopDown), (gpointer)(intptr_t) dlgNr);