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



commit 1ab57afa8943a664f5c4ed019ff52540be689785
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]