Philipp Hörist pushed to branch master at gajim / gajim
Commits:
7ed770d7 by Daniel Brötzmann at 2019-04-30T15:33:12Z
Treat incoming messages as 'chat' by default
Incomming messages of type 'normal' have to be acknowledged one by one,
which can be time consuming when many messages are received.
- - - - -
1 changed file:
- gajim/common/config.py
Changes:
=====================================
gajim/common/config.py
=====================================
@@ -257,7 +257,7 @@ class Config:
'confirm_custom_status': [opt_str, '', _('Show the confirm custom status dialog or not? Empty string means never show the dialog.')],
'enable_negative_priority': [opt_bool, False, _('If true, you will be able to set a negative priority to your account in account modification window. BE CAREFUL, when you are logged in with a negative priority, you will NOT receive any message from your server.')],
'show_contacts_number': [opt_bool, True, _('If true, Gajim will show number of online and total contacts in account and group rows.')],
- 'treat_incoming_messages': [opt_str, '', _('Can be empty, \'chat\' or \'normal\'. If not empty, treat all incoming messages as if they were of this type')],
+ 'treat_incoming_messages': [opt_str, 'chat', _('Can be empty, \'chat\' or \'normal\'. If not empty, treat all incoming messages as if they were of this type')],
'scroll_roster_to_last_message': [opt_bool, True, _('If true, Gajim will scroll and select the contact who sent you the last message, if chat window is not already opened.')],
'change_status_window_timeout': [opt_int, 15, _('Time of inactivity needed before the change status window closes down.')],
'max_conversation_lines': [opt_int, 500, _('Maximum number of lines that are printed in conversations. Oldest lines are cleared.')],
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/7ed770d7c83deb9190eb129781da61cb08…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/7ed770d7c83deb9190eb129781da61cb08…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
ba1f88a0 by Daniel Brötzmann at 2019-04-27T12:04:19Z
RosterWindow: Remove blocked contacts from contact list if not in roster
When blocking a contact which is not in the roster, the contact is
removed and the ChatControl is closed (if any).
- - - - -
2 changed files:
- gajim/data/gui/blocking_list.ui
- gajim/roster_window.py
Changes:
=====================================
gajim/data/gui/blocking_list.ui
=====================================
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.22.1 -->
<interface>
- <requires lib="gtk+" version="3.12"/>
+ <requires lib="gtk+" version="3.20"/>
<object class="GtkListStore" id="blocking_store">
<columns>
<!-- column-name jid -->
@@ -13,10 +13,7 @@
<property name="height_request">300</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="margin_left">18</property>
- <property name="margin_right">18</property>
- <property name="margin_top">18</property>
- <property name="margin_bottom">18</property>
+ <property name="border_width">18</property>
<property name="row_spacing">5</property>
<property name="column_spacing">10</property>
<child>
@@ -83,6 +80,9 @@
<property name="halign">end</property>
<property name="always_show_image">True</property>
<signal name="clicked" handler="_on_save" swapped="no"/>
+ <style>
+ <class name="suggested-action"/>
+ </style>
</object>
<packing>
<property name="left_attach">1</property>
=====================================
gajim/roster_window.py
=====================================
@@ -64,8 +64,8 @@ from gajim.common.dbus import location
from gajim.common import ged
from gajim.message_window import MessageWindowMgr
-from gajim.gtk.dialogs import ConfirmationDialogCheck
from gajim.gtk.dialogs import ConfirmationDialog
+from gajim.gtk.dialogs import ConfirmationDialogCheck
from gajim.gtk.dialogs import ErrorDialog
from gajim.gtk.dialogs import InputDialog
from gajim.gtk.dialogs import WarningDialog
@@ -2789,6 +2789,15 @@ class RosterWindow:
con = app.connections[acct]
con.get_module('PrivacyLists').block_contacts(l_, msg)
for contact in l_:
+ ctrl = app.interface.msg_win_mgr.get_control(
+ contact.jid, acct)
+ if ctrl:
+ ctrl.parent_win.remove_tab(
+ ctrl, ctrl.parent_win.CLOSE_COMMAND, force=True)
+ if contact.show == 'not in roster':
+ self.remove_contact(contact.jid, acct, force=True,
+ backend=True)
+ return
self.draw_contact(contact.jid, acct)
else:
for acct in accounts:
@@ -2801,7 +2810,7 @@ class RosterWindow:
def _block_it(is_checked=None):
if is_checked is not None: # dialog has been shown
- if is_checked: # user does not want to be asked again
+ if is_checked: # user does not want to be asked again
app.config.set('confirm_block', 'no')
else:
app.config.set('confirm_block', 'yes')
@@ -2811,12 +2820,17 @@ class RosterWindow:
if confirm_block == 'no':
_block_it()
return
- pritext = _('You are about to block a contact. Are you sure you want'
- ' to continue?')
- sectext = _('This contact will see you offline and you will not '
- 'receive messages it sends you.')
- ConfirmationDialogCheck(pritext, sectext,
- _('_Do not ask me again'), on_response_ok=_block_it)
+ NewConfirmationCheckDialog(_('Block Contact'),
+ _('Really block this contact?'),
+ _('This contact will see you offline and '
+ 'you will not receive messages sent to '
+ 'you by this contact.'),
+ _('_Do not ask me again'),
+ [DialogButton.make('Cancel'),
+ DialogButton.make('Remove',
+ text=_('Block Contact'),
+ callback=_block_it)],
+ modal=False).show()
def on_unblock(self, widget, list_, group=None):
"""
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/ba1f88a006909856d94ea9f827678b25cc…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/ba1f88a006909856d94ea9f827678b25cc…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
a50cedaa by Philipp Hörist at 2019-04-27T10:39:34Z
Move log message
- - - - -
2 changed files:
- gajim/gtk/htmltextview.py
- gajim/gui_menu_builder.py
Changes:
=====================================
gajim/gtk/htmltextview.py
=====================================
@@ -882,6 +882,7 @@ class HtmlTextView(Gtk.TextView):
def show_context_menu(self, uri):
menu = get_conv_context_menu(self.account, uri)
if menu is None:
+ log.warning('No handler for URI type: %s', uri)
return
def destroy(menu, _pspec):
=====================================
gajim/gui_menu_builder.py
=====================================
@@ -961,7 +961,6 @@ def get_conv_context_menu(account, uri):
('-add-contact', _('Add to Roster…')),
]
else:
- log.warning('No handler for URI type: %s', uri)
return
menu = Gtk.Menu()
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/a50cedaa6b6439d86db2a6c2281c50c548…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/a50cedaa6b6439d86db2a6c2281c50c548…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
6c6c4bdc by Markus Wintermann at 2019-04-26T19:41:38Z
Fix installation of dependencies
Install precis-i18n before the other dependencies, because it is needed by
python-nbxmpp
- - - - -
1 changed file:
- win/dev_env.sh
Changes:
=====================================
win/dev_env.sh
=====================================
@@ -27,9 +27,8 @@ python-gnupg
keyring
cssutils
qrcode
-precis-i18n
"
-
+pip3 install precis-i18n
pip3 install $(echo "$PIP_REQUIREMENTS" | tr ["\\n"] [" "])
}
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/6c6c4bdcfe96430b07fb619d6ff09fb426…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/6c6c4bdcfe96430b07fb619d6ff09fb426…
You're receiving this email because of your account on dev.gajim.org.