[gedit] Fix duplicated tool accel dialog



commit 0d78f7797920780eba5e3f9266da042bf2f57fbf
Author: Paolo Borelli <pborelli gnome org>
Date:   Sat Dec 3 11:41:23 2011 +0100

    Fix duplicated tool accel dialog

 plugins/externaltools/tools/manager.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/externaltools/tools/manager.py b/plugins/externaltools/tools/manager.py
index bead7ba..eaf3fe1 100644
--- a/plugins/externaltools/tools/manager.py
+++ b/plugins/externaltools/tools/manager.py
@@ -775,12 +775,12 @@ class Manager:
             return True
             
         col = self.accelerator_collision(name, self.current_node)
-        
+
         if col:
             dialog = Gtk.MessageDialog(self.dialog,
-                                       Gtk.DIALOG_MODAL,
-                                       Gtk.MESSAGE_ERROR,
-                                       Gtk.BUTTONS_OK,
+                                       Gtk.DialogFlags.MODAL,
+                                       Gtk.MessageType.ERROR,
+                                       Gtk.ButtonsType.CLOSE,
                                        _('This accelerator is already bound to %s') % (', '.join(map(lambda x: x.name, col)),))
 
             dialog.run()



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