fix OK-response in gtk dialogs, see c7f8df124
authorArun Persaud <arun@nubati.net>
Tue, 19 Feb 2013 03:55:20 +0000 (19:55 -0800)
committerArun Persaud <arun@nubati.net>
Tue, 19 Feb 2013 03:55:20 +0000 (19:55 -0800)
the fix in c7f8df124 needs to be applied to both of those if cases

gtk/xoptions.c

index 8b231f9..9687090 100644 (file)
@@ -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);