Philipp Hörist pushed to branch master at gajim / gajim
Commits:
65d2284b by Philipp Hörist at 2017-09-23T10:10:36+02:00
Reduce PROCESS_TIMEOUT on Windows
If io_add_watch is available like on Linux, the PROCESS_TIMEOUT,
is only used to check for timed out events.
On Window its also used to call select() on the socket, so we get
pending data. We need this as low as possible otherwise Gajim on
Windows feels painfully slow.
- - - - -
1 changed file:
- gajim/gui_interface.py
Changes:
=====================================
gajim/gui_interface.py
=====================================
--- a/gajim/gui_interface.py
+++ b/gajim/gui_interface.py
@@ -2309,7 +2309,12 @@ class Interface:
app.idlequeue.process()
except Exception:
# Otherwise, an exception will stop our loop
- timeout, in_seconds = app.idlequeue.PROCESS_TIMEOUT
+
+ if sys.platform == 'win32':
+ timeout, in_seconds = 20, None
+ else:
+ timeout, in_seconds = app.idlequeue.PROCESS_TIMEOUT
+
if in_seconds:
GLib.timeout_add_seconds(timeout, self.process_connections)
else:
@@ -2566,7 +2571,11 @@ class Interface:
self.instances['file_transfers'] = dialogs.FileTransfersWindow()
GLib.timeout_add(100, self.autoconnect)
- timeout, in_seconds = app.idlequeue.PROCESS_TIMEOUT
+ if sys.platform == 'win32':
+ timeout, in_seconds = 20, None
+ else:
+ timeout, in_seconds = app.idlequeue.PROCESS_TIMEOUT
+
if in_seconds:
GLib.timeout_add_seconds(timeout, self.process_connections)
else:
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/65d2284b59f00969c140b1d90e07b99968…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/65d2284b59f00969c140b1d90e07b99968…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch gajim_0.16 at gajim / gajim
Commits:
1886fda5 by Philipp Hörist at 2017-09-22T15:57:52+02:00
Set lock_image from pixbuf instead of filepath
Fixes #8673
- - - - -
1 changed file:
- src/chat_control.py
Changes:
=====================================
src/chat_control.py
=====================================
--- a/src/chat_control.py
+++ b/src/chat_control.py
@@ -2314,12 +2314,13 @@ class ChatControl(ChatControlBase):
if authenticated:
#About encrypted chat session
authenticated_string = _('and authenticated')
- img_path = gtkgui_helpers.get_icon_path('security-high')
+ pixbuf = gtkgui_helpers.get_icon_pixmap('security-high')
else:
#About encrypted chat session
authenticated_string = _('and NOT authenticated')
- img_path = gtkgui_helpers.get_icon_path('security-low')
- self.lock_image.set_from_file(img_path)
+ pixbuf = gtkgui_helpers.get_icon_pixmap('security-low')
+
+ self.lock_image.set_from_pixbuf(pixbuf)
#status will become 'is' or 'is not', authentificaed will become
#'and authentificated' or 'and not authentificated', logged will become
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/1886fda5c30d6e0b26705daa592096a961…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/1886fda5c30d6e0b26705daa592096a961…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
b60fe026 by Philipp Hörist at 2017-09-22T00:07:48+02:00
Use own module logger for connection_zeroconf
- - - - -
1 changed file:
- gajim/common/zeroconf/connection_zeroconf.py
Changes:
=====================================
gajim/common/zeroconf/connection_zeroconf.py
=====================================
--- a/gajim/common/zeroconf/connection_zeroconf.py
+++ b/gajim/common/zeroconf/connection_zeroconf.py
@@ -50,6 +50,8 @@ from gajim.common.zeroconf import zeroconf
from gajim.common.zeroconf.connection_handlers_zeroconf import *
from gajim.common.connection_handlers_events import *
+log = logging.getLogger('gajim.c.connection_zeroconf')
+
class ConnectionZeroconf(CommonConnection, ConnectionHandlersZeroconf):
def __init__(self, name):
ConnectionHandlersZeroconf.__init__(self)
@@ -73,7 +75,7 @@ class ConnectionZeroconf(CommonConnection, ConnectionHandlersZeroconf):
values
"""
if not app.config.get_per('accounts', app.ZEROCONF_ACC_NAME, 'name'):
- app.log.debug('Creating zeroconf account')
+ log.debug('Creating zeroconf account')
app.config.add_per('accounts', app.ZEROCONF_ACC_NAME)
app.config.set_per('accounts', app.ZEROCONF_ACC_NAME,
'autoconnect', True)
@@ -123,7 +125,7 @@ class ConnectionZeroconf(CommonConnection, ConnectionHandlersZeroconf):
def reconnect(self):
# Do not try to reco while we are already trying
self.time_to_reconnect = None
- app.log.debug('reconnect')
+ log.debug('reconnect')
self.disconnect()
self.change_status(self.old_show, self.status)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/b60fe02680f34011b9cd6ae854ba690ae9…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/b60fe02680f34011b9cd6ae854ba690ae9…
You're receiving this email because of your account on dev.gajim.org.
Yann Leboulanger pushed to branch master at gajim / gajim
Commits:
3e1ea4a3 by Yann Leboulanger at 2017-09-21T17:19:25+02:00
implement XEP-0380. Fixes #8734
- - - - -
0c167b65 by Yann Leboulanger at 2017-09-21T17:28:32+02:00
Merge branch 'master' into 'master'
implement XEP-0380. Fixes #8734
Closes #8734
See merge request !133
- - - - -
1 changed file:
- gajim/common/connection_handlers.py
Changes:
=====================================
gajim/common/connection_handlers.py
=====================================
--- a/gajim/common/connection_handlers.py
+++ b/gajim/common/connection_handlers.py
@@ -1080,6 +1080,27 @@ class ConnectionHandlersBase:
app.plugin_manager.extension_point(
'decrypt', self, obj, self._on_message_received)
if not obj.encrypted:
+ # XEP-0380
+ enc_tag = obj.stanza.getTag('encryption', namespace=nbxmpp.NS_EME)
+ if enc_tag:
+ ns = enc_tag.getAttr('namespace')
+ if ns:
+ if ns == 'urn:xmpp:otr:0':
+ obj.msgtxt = _('This message was encrypted with OTR '
+ 'and could not be decrypted.')
+ elif ns == 'jabber:x:encrypted':
+ obj.msgtxt = _('This message was encrypted with Legacy '
+ 'OpenPGP and could not be decrypted. You can install '
+ 'the PGP plugin to handle those messages.')
+ elif ns == 'urn:xmpp:openpgp:0':
+ obj.msgtxt = _('This message was encrypted with '
+ 'OpenPGP for XMPP and could not be decrypted.')
+ else:
+ enc_name = enc_tag.getAttr('name')
+ if not enc_name:
+ enc_name = ns
+ obj.msgtxt = _('This message was encrypted with %s '
+ 'and could not be decrypted.') % enc_name
self._on_message_received(obj)
def _on_message_received(self, obj):
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/f50f22c4bd1441e9e2776471bf1037a29…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/f50f22c4bd1441e9e2776471bf1037a29…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
f50f22c4 by Philipp Hörist at 2017-09-20T21:18:22+02:00
Use custom font for MessageTextView
- - - - -
1 changed file:
- gajim/message_textview.py
Changes:
=====================================
gajim/message_textview.py
=====================================
--- a/gajim/message_textview.py
+++ b/gajim/message_textview.py
@@ -51,6 +51,7 @@ class MessageTextView(Gtk.TextView):
self.set_right_margin(2)
self.set_pixels_above_lines(2)
self.set_pixels_below_lines(2)
+ self.get_style_context().add_class('font_custom')
# set undo list
self.undo_list = []
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/f50f22c4bd1441e9e2776471bf1037a29d…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/f50f22c4bd1441e9e2776471bf1037a29d…
You're receiving this email because of your account on dev.gajim.org.