[gimp] Bug 735774: Zarro Boogs found for PF_FILENAME - Ambiguous Entry Dialog



commit a1a4a067e458a4dc9d87b1cb64291306525f8d9b
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Thu Jul 28 17:57:47 2016 +0200

    Bug 735774: Zarro Boogs found for PF_FILENAME - Ambiguous Entry Dialog
    
    FileChooser 'action' and 'buttons' should be consistent
    and call set_alternative_button_order to be consistent
    on platforms using the alternative button order.

 plug-ins/pygimp/gimpfu.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/pygimp/gimpfu.py b/plug-ins/pygimp/gimpfu.py
index 97d9bf2..f6ae32e 100644
--- a/plug-ins/pygimp/gimpfu.py
+++ b/plug-ins/pygimp/gimpfu.py
@@ -626,9 +626,12 @@ def _interact(proc_name, start_params):
                                  gtk.FILE_CHOOSER_ACTION_OPEN),
                          buttons=(gtk.STOCK_CANCEL,
                                 gtk.RESPONSE_CANCEL,
+                                gtk.STOCK_SAVE
+                                     if self.save_mode else
                                 gtk.STOCK_OPEN,
                                 gtk.RESPONSE_OK)
                         )
+            dialog.set_alternative_button_order ((gtk.RESPONSE_OK, gtk.RESPONSE_CANCEL))
             dialog.show_all()
             response = dialog.run()
             if response == gtk.RESPONSE_OK:


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