[gimp/gtk3-port: 395/440] libgimpwidgets: also move GTK_RESPONSE_CLOSE buttons to the left



commit ad93ce7c929515a292fd966413d3803d4d6ccc4a
Author: Michael Natterer <mitch gimp org>
Date:   Thu May 10 18:25:36 2018 +0200

    libgimpwidgets: also move GTK_RESPONSE_CLOSE buttons to the left
    
    in GimpDialog's header bar.

 libgimpwidgets/gimpdialog.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libgimpwidgets/gimpdialog.c b/libgimpwidgets/gimpdialog.c
index 63c302d..272d1cd 100644
--- a/libgimpwidgets/gimpdialog.c
+++ b/libgimpwidgets/gimpdialog.c
@@ -501,8 +501,9 @@ gimp_dialog_add_button (GimpDialog  *dialog,
                 NULL);
 
   if (use_header_bar &&
-      (response_id == GTK_RESPONSE_OK ||
-       response_id == GTK_RESPONSE_CANCEL))
+      (response_id == GTK_RESPONSE_OK     ||
+       response_id == GTK_RESPONSE_CANCEL ||
+       response_id == GTK_RESPONSE_CLOSE))
     {
       GtkWidget *header = gtk_dialog_get_header_bar (GTK_DIALOG (dialog));
 


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