Commit 8566d036 authored by Philipp Hörist's avatar Philipp Hörist

DialogButton: Use better defaults for response

parent b8d83eb5
Pipeline #4460 passed with stages
in 6 minutes and 27 seconds
......@@ -52,17 +52,17 @@ class DialogButton(namedtuple('DialogButton', ('response text callback args '
default_kwargs['text'] = _('Cancel')
elif type_ == 'Accept':
default_kwargs['response'] = Gtk.ResponseType.OK
default_kwargs['response'] = Gtk.ResponseType.ACCEPT
default_kwargs['text'] = _('Accept')
default_kwargs['action'] = ButtonAction.SUGGESTED
elif type_ == 'Delete':
default_kwargs['response'] = Gtk.ResponseType.OK
default_kwargs['response'] = Gtk.ResponseType.REJECT
default_kwargs['text'] = _('Delete')
default_kwargs['action'] = ButtonAction.DESTRUCTIVE
elif type_ == 'Remove':
default_kwargs['response'] = Gtk.ResponseType.OK
default_kwargs['response'] = Gtk.ResponseType.REJECT
default_kwargs['text'] = _('Remove')
default_kwargs['action'] = ButtonAction.DESTRUCTIVE
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment