diff options
| author | Aurelian R <arusanu@gmail.com> | 2026-03-26 16:51:36 +0200 |
|---|---|---|
| committer | Aurelian R <arusanu@gmail.com> | 2026-03-26 16:51:36 +0200 |
| commit | 94c39c2871138c7c016bd2530364bf3ad8ced0b5 (patch) | |
| tree | e2fc7c620b30f2421d98a8d714a009e79b05868b /src | |
| parent | aa29a59b4988c529110304a283679a3e009c3a78 (diff) | |
| download | msec-94c39c2871138c7c016bd2530364bf3ad8ced0b5.tar msec-94c39c2871138c7c016bd2530364bf3ad8ced0b5.tar.gz msec-94c39c2871138c7c016bd2530364bf3ad8ced0b5.tar.bz2 msec-94c39c2871138c7c016bd2530364bf3ad8ced0b5.tar.xz msec-94c39c2871138c7c016bd2530364bf3ad8ced0b5.zip | |
Fix an assertion failure in "Saving changes" dialog
Diffstat (limited to 'src')
| -rwxr-xr-x | src/msec/msecgui.py | 6 |
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) |
