[gimp] app: use GTK_RESPONSE_CLOSE in image-properties-dialog



commit a26ade92a066bda3ac52baef064f2504034079ac
Author: Michael Natterer <mitch gimp org>
Date:   Fri May 31 17:44:03 2019 +0200

    app: use GTK_RESPONSE_CLOSE in image-properties-dialog
    
    so the dialog header bar omits the second close button.

 app/dialogs/image-properties-dialog.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/app/dialogs/image-properties-dialog.c b/app/dialogs/image-properties-dialog.c
index c8e29365ac..8fac9da8cc 100644
--- a/app/dialogs/image-properties-dialog.c
+++ b/app/dialogs/image-properties-dialog.c
@@ -65,10 +65,12 @@ image_properties_dialog_new (GimpImage   *image,
                                      gimp_standard_help_func,
                                      GIMP_HELP_IMAGE_PROPERTIES,
 
-                                     _("_Close"), GTK_RESPONSE_OK,
+                                     _("_Close"), GTK_RESPONSE_CLOSE,
 
                                      NULL);
 
+  gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CLOSE);
+
   g_signal_connect (dialog, "response",
                     G_CALLBACK (gtk_widget_destroy),
                     NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]