aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/msec/msecgui.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/msec/msecgui.py b/src/msec/msecgui.py
index 4813902..5f74b58 100755
--- a/src/msec/msecgui.py
+++ b/src/msec/msecgui.py
@@ -340,10 +340,10 @@ class MsecGui(Gtk.Window):
# creating preview window
dialog = Gtk.Dialog(title=_('Saving changes...'), transient_for=self.window, modal=True)
- dialog.add_action_widget(Gtk.Button(label=_('Cancel')), Gtk.ResponseType.CANCEL)
+ dialog.add_button(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL)
if ask_ignore:
- dialog.add_action_widget(Gtk.Button(label=_("Ignore and quit")), Gtk.ResponseType.REJECT)
- dialog.add_action_widget(Gtk.Button(label=_('OK')), Gtk.ResponseType.OK)
+ dialog.add_button(_('Ignore and quit'), Gtk.ResponseType.REJECT)
+ dialog.add_button(Gtk.STOCK_OK, Gtk.ResponseType.OK)
dialog.set_default_size(640, 300)
dialog.set_default_response(Gtk.ResponseType.OK)