[gedit] quickopen: do not use deprecated keywords and stocks



commit 69f37a426f4738c3d12cdbfb99452b76dcc46b51
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Dec 25 22:08:40 2013 +0100

    quickopen: do not use deprecated keywords and stocks

 plugins/quickopen/quickopen/popup.py |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/plugins/quickopen/quickopen/popup.py b/plugins/quickopen/quickopen/popup.py
index f0c2669..ffeccc4 100644
--- a/plugins/quickopen/quickopen/popup.py
+++ b/plugins/quickopen/quickopen/popup.py
@@ -31,11 +31,12 @@ class Popup(Gtk.Dialog):
     def __init__(self, window, paths, handler):
         Gtk.Dialog.__init__(self,
                     title=_('Quick Open'),
-                    parent=window,
-                    flags=Gtk.DialogFlags.DESTROY_WITH_PARENT | Gtk.DialogFlags.MODAL,
-                    buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL))
+                    transient_for=window,
+                    modal=True,
+                    destroy_with_parent=True)
 
-        self._open_button = self.add_button(Gtk.STOCK_OPEN, Gtk.ResponseType.ACCEPT)
+        self.add_button(_("_Cancel"), Gtk.ResponseType.CANCEL)
+        self._open_button = self.add_button(_("_Open"), Gtk.ResponseType.ACCEPT)
 
         self._handler = handler
         self._build_ui()


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