Philipp Hörist pushed to branch master at gajim / gajim
Commits: 8566d036 by Philipp Hörist at 2019-11-05T20:48:21Z DialogButton: Use better defaults for response
- - - - -
1 changed file:
- gajim/gtk/dialogs.py
Changes:
===================================== gajim/gtk/dialogs.py ===================================== @@ -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:
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/8566d036973ffa2731923ceaaec2e772c55...