[gimp] Bug 768030 - keep same button placement on quit and close image dialogs.



commit 5e29293ef78dc8885849b732daa9a24480dc1d77
Author: Jehan <jehan girinstud io>
Date:   Thu Jun 30 02:42:31 2016 +0200

    Bug 768030 - keep same button placement on quit and close image dialogs.
    
    The code to reorder buttons was actually already there, yet the
    alternative order was not taken into account unless the setting
    "gtk-alternative-button-order" is TRUE.

 app/dialogs/quit-dialog.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/dialogs/quit-dialog.c b/app/dialogs/quit-dialog.c
index 46f6f0e..f62951a 100644
--- a/app/dialogs/quit-dialog.c
+++ b/app/dialogs/quit-dialog.c
@@ -158,6 +158,9 @@ quit_close_all_dialog_new (Gimp     *gimp,
   dialog->ok_button = gtk_dialog_add_button (GTK_DIALOG (dialog->dialog),
                                              "", GTK_RESPONSE_OK);
 
+  g_object_set (gtk_widget_get_settings (dialog->dialog),
+                "gtk-alternative-button-order", TRUE,
+                NULL);
   gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog->dialog),
                                            GTK_RESPONSE_OK,
                                            GTK_RESPONSE_CANCEL,


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