From d2174be3bdd0752499ae0d448f6f9d5c649e2b63 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Mon, 18 Feb 2013 19:55:20 -0800 Subject: [PATCH] fix OK-response in gtk dialogs, see c7f8df124 the fix in c7f8df124 needs to be applied to both of those if cases --- gtk/xoptions.c | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) 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); -- 1.7.0.4