[gimp] plug-ins: replace set_alternative_button_order_from_array() by the...



commit f1351df9eb50a36a62a7dfe331964776db5cae1d
Author: Jehan <jehan girinstud io>
Date:   Tue Jul 30 14:05:38 2019 +0200

    plug-ins: replace set_alternative_button_order_from_array() by the...
    
    ... Gimp.Dialog alternative version.
    Just to get rid of the warning.

 plug-ins/python/python-console/python-console.py | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/plug-ins/python/python-console/python-console.py 
b/plug-ins/python/python-console/python-console.py
index 1ec384000d..542a073392 100755
--- a/plug-ins/python/python-console/python-console.py
+++ b/plug-ins/python/python-console/python-console.py
@@ -73,11 +73,11 @@ def run(name, n_params, params):
             Gtk.Dialog.add_button(self, "Close", Gtk.ResponseType.CLOSE)
 
             Gtk.Widget.set_name (self, PROC_NAME)
-            Gtk.Dialog.set_alternative_button_order_from_array(self,
-                                                               [ Gtk.ResponseType.CLOSE,
-                                                                 RESPONSE_BROWSE,
-                                                                 RESPONSE_CLEAR,
-                                                                 Gtk.ResponseType.OK ])
+            Gimp.Dialog.set_alternative_button_order_from_array(self,
+                                                                [ Gtk.ResponseType.CLOSE,
+                                                                  RESPONSE_BROWSE,
+                                                                  RESPONSE_CLEAR,
+                                                                  Gtk.ResponseType.OK ])
 
             self.cons = GimpConsole(quit_func=lambda: Gtk.main_quit())
 
@@ -174,9 +174,9 @@ def run(name, n_params, params):
                 Gtk.Dialog.add_button(dlg, "Close", Gtk.ResponseType.CLOSE)
 
                 Gtk.Dialog.set_default_response(self, Gtk.ResponseType.OK)
-                Gtk.Dialog.set_alternative_button_order_from_array(dlg,
-                                                                   [ Gtk.ResponseType.CLOSE,
-                                                                     Gtk.ResponseType.APPLY ])
+                Gimp.Dialog.set_alternative_button_order_from_array(dlg,
+                                                                    [ Gtk.ResponseType.CLOSE,
+                                                                      Gtk.ResponseType.APPLY ])
 
                 dlg.connect('response', self.browse_response)
                 dlg.connect('row-activated',
@@ -225,9 +225,9 @@ def run(name, n_params, params):
                 Gtk.Dialog.add_button(dlg, "Cancel", Gtk.ResponseType.CANCEL)
                 Gtk.Dialog.add_button(dlg, "Save", Gtk.ResponseType.OK)
                 Gtk.Dialog.set_default_response(self, Gtk.ResponseType.OK)
-                Gtk.Dialog.set_alternative_button_order_from_array(dlg,
-                                                                   [ Gtk.ResponseType.OK,
-                                                                     Gtk.ResponseType.CANCEL ])
+                Gimp.Dialog.set_alternative_button_order_from_array(dlg,
+                                                                    [ Gtk.ResponseType.OK,
+                                                                      Gtk.ResponseType.CANCEL ])
 
                 dlg.connect('response', self.save_response)
 


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