Philipp Hörist pushed to branch master at gajim / gajim


Commits:
e12fc663 by Daniel Brötzmann at 2019-11-16T13:04:19Z
Dialogs: Make Accept button default

- - - - -
8cc30c36 by Daniel Brötzmann at 2019-11-16T14:12:51Z
Dialogs: Don't set unnecessary is_default

- - - - -


6 changed files:

- gajim/chat_control_base.py
- gajim/groupchat_control.py
- gajim/gtk/dialogs.py
- gajim/gtk/filetransfer.py
- gajim/message_window.py
- gajim/roster_window.py


Changes:

=====================================
gajim/chat_control_base.py
=====================================
@@ -794,7 +794,6 @@ class ChatControlBase(ChatCommandProcessor, CommandTools, 
EventHelper):
                 [DialogButton.make('Cancel'),
                  DialogButton.make('Accept',
                                    text=_('_Paste'),
-                                   is_default=True,
                                    callback=self._paste_event_confirmed,
                                    args=[image])]).show()
 


=====================================
gajim/groupchat_control.py
=====================================
@@ -1699,7 +1699,6 @@ class GroupchatControl(ChatControlBase):
                                    callback=on_cancel),
                  DialogButton.make('Accept',
                                    text=_('_Leave'),
-                                   is_default=True,
                                    callback=on_ok)],
                 transient_for=self.parent_win.window).show()
             return


=====================================
gajim/gtk/dialogs.py
=====================================
@@ -54,6 +54,7 @@ class DialogButton(namedtuple('DialogButton', ('response text 
callback args '
             elif type_ == 'Accept':
                 default_kwargs['response'] = Gtk.ResponseType.ACCEPT
                 default_kwargs['text'] = _('Accept')
+                default_kwargs['is_default'] = True
                 default_kwargs['action'] = ButtonAction.SUGGESTED
 
             elif type_ == 'Delete':


=====================================
gajim/gtk/filetransfer.py
=====================================
@@ -431,7 +431,6 @@ class FileTransfersWindow:
                                        callback=_on_resume),
                      DialogButton.make('Accept',
                                        text=_('Replace _File'),
-                                       is_default=True,
                                        callback=_on_replace)]).show()
 
             # File does not exist yet


=====================================
gajim/message_window.py
=====================================
@@ -364,7 +364,6 @@ class MessageWindow(EventHelper):
                 [DialogButton.make('Cancel'),
                  DialogButton.make('Accept',
                                    text=_('_Close'),
-                                   is_default=True,
                                    callback=_on_yes1)],
                 transient_for=self.window).show()
             return True


=====================================
gajim/roster_window.py
=====================================
@@ -4107,7 +4107,6 @@ class RosterWindow:
             [DialogButton.make('Cancel'),
              DialogButton.make('Accept',
                                text=_('_Create'),
-                               is_default=True,
                                callback=merge_contacts)]).show()
 
     def on_drop_in_group(self, widget, account, c_source, grp_dest,
@@ -4250,7 +4249,6 @@ class RosterWindow:
                 [DialogButton.make('Cancel'),
                  DialogButton.make('Accept',
                                    text=_('_Send'),
-                                   is_default=True,
                                    callback=_on_send_files,
                                    args=(account_dest, jid_dest, 
uri_splitted))],
                 transient_for=self.window).show()



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/compare/3b1459f78e4672907e07cf0f34bd6bc1bd654b4a...8cc30c368dcf88bd09d7e25303623eb0bb6044f1

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/compare/3b1459f78e4672907e07cf0f34bd6bc1bd654b4a...8cc30c368dcf88bd09d7e25303623eb0bb6044f1
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to