Philipp Hörist pushed to branch master at gajim / gajim
Commits:
39141569 by Daniel Brötzmann at 2019-11-14T18:10:51Z
Blocking: Set different labels for confirmation dialog if it is a group
- - - - -
1 changed file:
- gajim/roster_window.py
Changes:
=====================================
gajim/roster_window.py
=====================================
@@ -2831,19 +2831,35 @@ class RosterWindow:
app.config.set('confirm_block', 'yes')
self.get_status_message('offline', on_continue, show_pep=False)
+ # Check if confirmation is needed for blocking
confirm_block = app.config.get('confirm_block')
if confirm_block == 'no':
_block_it()
return
+
+ # Set dialog's labels depending on if it is a group or a single contact
+ if group is None:
+ title = _('Block Contact')
+ pritext = _('Really block this contact?')
+ sectext = _('This contact will see you offline and you will not '
+ 'receive any messages sent to you by this contact.')
+ button_text = _('_Block Contact')
+ else:
+ title = _('Block Group')
+ pritext = _('Really block this group?')
+ sectext = _('All contacts of this group will see you as offline '
+ 'and you will not receive any messages sent to you '
+ 'by any one of these contacts.')
+ button_text = _('_Block Group')
+
NewConfirmationCheckDialog(
- _('Block Contact'),
- _('Really block this contact?'),
- _('This contact will see you offline and you will not receive '
- 'any messages sent to you by this contact.'),
+ title,
+ pritext,
+ sectext,
_('_Do not ask me again'),
[DialogButton.make('Cancel'),
DialogButton.make('Remove',
- text=_('_Block Contact'),
+ text=button_text,
callback=_block_it)],
modal=False).show()
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/391415693dca842d416725617f351ac61d…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/391415693dca842d416725617f351ac61d…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
36ecf673 by Philipp Hörist at 2019-11-13T19:37:37Z
Remove unused method
- - - - -
1 changed file:
- gajim/chat_control_base.py
Changes:
=====================================
gajim/chat_control_base.py
=====================================
@@ -1388,12 +1388,6 @@ class ChatControlBase(ChatCommandProcessor, CommandTools, EventHelper):
return
_on_ok(gc_contact)
- def on_notify_menuitem_toggled(self, widget):
- app.config.set_per('rooms',
- self.contact.jid,
- 'notify_on_all_messages',
- widget.get_active())
-
def set_control_active(self, state):
con = app.connections[self.account]
if state:
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/36ecf673212775ac3578bec48e2d4b8000…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/36ecf673212775ac3578bec48e2d4b8000…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
78c5c284 by Philipp Hörist at 2019-11-13T05:37:07Z
Remove remains of SI FT code
- - - - -
010cde76 by Philipp Hörist at 2019-11-13T09:51:31Z
Use Enum for Control type attribute
- - - - -
c5f405ec by Philipp Hörist at 2019-11-13T13:36:37Z
Add EventHelper class
This class provides easier access to registering events and more
importantly it deals with automatically unregistering all events with
a simple call of unregister_events()
This helps with objects getting correctly garbage collected
- - - - -
0e893197 by Philipp Hörist at 2019-11-13T13:36:42Z
Add EventHelper for GTK Widgets
This is a variation that unregisters all events on `destroy`
- - - - -
f35c67eb by Philipp Hörist at 2019-11-13T14:55:35Z
Increase usage of EventHelper
- - - - -
f6a1810d by Philipp Hörist at 2019-11-13T15:28:19Z
Remove unused methods
- - - - -
7f1ec993 by Philipp Hörist at 2019-11-13T15:42:51Z
Integrate MessageControl into ChatControlBase
There is no need to split functionality out into MessageControl because
all Controls use ChatControlBase. This simplifys the code.
- - - - -
30 changed files:
- gajim/chat_control.py
- gajim/chat_control_base.py
- gajim/common/app.py
- gajim/common/connection_handlers_events.py
- gajim/common/modules/base.py
- gajim/common/modules/httpupload.py
- gajim/common/modules/muc.py
- gajim/common/nec.py
- gajim/groupchat_control.py
- gajim/gtk/account_wizard.py
- gajim/gtk/add_contact.py
- gajim/gtk/const.py
- gajim/gtk/groupchat_roster.py
- gajim/gtk/history_sync.py
- gajim/gtk/http_upload_progress.py
- gajim/gtk/mam_preferences.py
- gajim/gtk/notification.py
- gajim/gtk/pep_config.py
- gajim/gtk/preferences.py
- gajim/gtk/privacy_list.py
- gajim/gtk/profile.py
- gajim/gtk/search.py
- gajim/gtk/server_info.py
- gajim/gtk/util.py
- gajim/gtk/xml_console.py
- gajim/gui_interface.py
- gajim/gui_menu_builder.py
- − gajim/message_control.py
- gajim/message_window.py
- gajim/privatechat_control.py
The diff was not included because it is too large.
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/1f8ecb5855e707d93b579dd622ad34abc…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/1f8ecb5855e707d93b579dd622ad34abc…
You're receiving this email because of your account on dev.gajim.org.