Commit ee7ad12f authored by Daniel Brötzmann's avatar Daniel Brötzmann

DialogButton: Add Accept button type

parent 5c04e715
Pipeline #4169 passed with stages
in 3 minutes and 18 seconds
......@@ -52,6 +52,11 @@ class DialogButton(namedtuple('DialogButton', ('response text callback args '
default_kwargs['response'] = Gtk.ResponseType.CANCEL
default_kwargs['text'] = _('Cancel')
elif type_ == 'Accept':
default_kwargs['response'] = Gtk.ResponseType.OK
default_kwargs['text'] = _('Accept')
default_kwargs['action'] = ButtonAction.SUGGESTED
elif type_ == 'Delete':
default_kwargs['response'] = Gtk.ResponseType.OK
default_kwargs['text'] = _('Delete')
......
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