Philipp Hörist pushed to branch master at gajim / gajim
Commits:
0a9f0ed9 by lovetox at 2020-10-04T16:05:23+02:00
ChatBaseControl: Fix regression with non-english keyboard layouts
- - - - -
1 changed file:
- gajim/chat_control_base.py
Changes:
=====================================
gajim/chat_control_base.py
=====================================
@@ -79,6 +79,12 @@ from gajim.command_system.implementation import execute
if app.is_installed('GSPELL'):
from gi.repository import Gspell # pylint: disable=ungrouped-imports
+# This is needed so copying text from the conversation textview
+# works with different language layouts. Pressing the key c on a russian
+# layout yields another keyval than with the english layout.
+# So we match hardware keycodes instead of keyvals.
+# Multiple hardware keycodes can trigger a keyval like Gdk.KEY_c.
+KEYCODES_KEY_C = get_hardware_key_codes(Gdk.KEY_c)
if sys.platform == 'darwin':
COPY_MODIFIER = Gdk.ModifierType.META_MASK
@@ -94,12 +100,6 @@ class ChatControlBase(ChatCommandProcessor, CommandTools, EventHelper):
A base class containing a banner, ConversationTextview, MessageInputTextView
"""
- # This is needed so copying text from the conversation textview
- # works with different language layouts. Pressing the key c on a russian
- # layout yields another keyval than with the english layout.
- # So we match hardware keycodes instead of keyvals.
- # Multiple hardware keycodes can trigger a keyval like Gdk.KEY_c.
- keycodes_c = get_hardware_key_codes(Gdk.KEY_c)
_type = None # type: ControlType
def __init__(self, parent_win, widget_name, contact, acct,
@@ -272,7 +272,7 @@ class ChatControlBase(ChatCommandProcessor, CommandTools, EventHelper):
if event.get_state() & COPY_MODIFIER:
# Don’t reroute the event if it is META + c and the
# textview has a selection
- if event.keyval == Gdk.KEY_c:
+ if event.hardware_keycode in KEYCODES_KEY_C:
if textview.get_buffer().props.has_selection:
return Gdk.EVENT_PROPAGATE
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/0a9f0ed9238a6e1406e3daa9438fa6bd…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/0a9f0ed9238a6e1406e3daa9438fa6bd…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
76142043 by lovetox at 2020-09-26T22:11:36+02:00
EntityCaps: Add more logging output on invalid presence
- - - - -
9c9cc108 by lovetox at 2020-09-29T19:45:25+02:00
Use integer log levels
- - - - -
2 changed files:
- nbxmpp/errors.py
- nbxmpp/modules/entity_caps.py
Changes:
=====================================
nbxmpp/errors.py
=====================================
@@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with this program; If not, see <http://www.gnu.org/licenses/>.
+import logging
+
from nbxmpp.namespaces import Namespace
@@ -29,7 +31,7 @@ class BaseError(Exception):
class StanzaError(BaseError):
- log_level = 'info'
+ log_level = logging.INFO
app_namespace = None
def __init__(self, stanza):
@@ -98,7 +100,7 @@ class PubSubStanzaError(StanzaError):
class MalformedStanzaError(BaseError):
- log_level = 'warning'
+ log_level = logging.WARNING
def __init__(self, text, stanza, is_fatal=True):
BaseError.__init__(self, is_fatal=is_fatal)
@@ -108,7 +110,7 @@ class MalformedStanzaError(BaseError):
class CancelledError(BaseError):
- log_level = 'info'
+ log_level = logging.INFO
def __init__(self):
BaseError.__init__(self, is_fatal=True)
=====================================
nbxmpp/modules/entity_caps.py
=====================================
@@ -82,16 +82,19 @@ class EntityCaps(BaseModule):
if hash_algo != 'sha-1':
self._log.warning('Unsupported hashing algorithm used: %s',
hash_algo)
+ self._log.warning(stanza)
return
node = caps.getAttr('node')
if not node:
self._log.warning('node attribute missing')
+ self._log.warning(stanza)
return
ver = caps.getAttr('ver')
if not ver:
self._log.warning('ver attribute missing')
+ self._log.warning(stanza)
return
properties.entity_caps = EntityCapsData(
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/compare/854caebc7a441854f79be39…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/compare/854caebc7a441854f79be39…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
8110474f by Daniel Brötzmann at 2020-09-28T19:58:21+02:00
GroupChatInvitation: Fix invitation label
- - - - -
1 changed file:
- gajim/gtk/groupchat_invitation.py
Changes:
=====================================
gajim/gtk/groupchat_invitation.py
=====================================
@@ -54,7 +54,7 @@ class GroupChatInvitation(Gtk.ApplicationWindow):
contact_label.set_justify(Gtk.Justification.CENTER)
contact_label.set_line_wrap(True)
invitation_label = Gtk.Label(
- label=_('Has invited you to a group chat.\nDo you want to join?'))
+ label=_('has invited you to a group chat.\nDo you want to join?'))
invitation_label.set_halign(Gtk.Align.CENTER)
invitation_label.set_justify(Gtk.Justification.CENTER)
invitation_label.set_max_width_chars(50)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/8110474f8b0ee239368afe6fafe502c0…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/8110474f8b0ee239368afe6fafe502c0…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
42b0d572 by lovetox at 2020-09-27T18:38:29+02:00
Preferences: Add setting for showing the send button
- - - - -
1 changed file:
- gajim/gtk/preferences.py
Changes:
=====================================
gajim/gtk/preferences.py
=====================================
@@ -339,6 +339,11 @@ class Chats(PreferenceBox):
desc=_('Render XHTML styles (colors, etc.) of incoming '
'messages')),
+ Setting(SettingKind.SWITCH,
+ _('Show Send Message Button'),
+ SettingType.CONFIG,
+ 'show_send_message_button'),
+
Setting(SettingKind.SWITCH,
_('Show Status Message'),
SettingType.CONFIG,
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/42b0d572fffa3f697746f69a84bc9eef…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/42b0d572fffa3f697746f69a84bc9eef…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
5ca5eb88 by Daniel Brötzmann at 2020-09-26T11:22:10+02:00
ConversationTextview: Use encrypted-color
- - - - -
1 changed file:
- gajim/conversation_textview.py
Changes:
=====================================
gajim/conversation_textview.py
=====================================
@@ -68,7 +68,7 @@ TRUST_SYMBOL_DATA = {
'warning-color'),
Trust.BLIND: ('security-medium-symbolic',
_('Unverified'),
- 'success-color'),
+ 'encrypted-color'),
Trust.VERIFIED: ('security-high-symbolic',
_('Verified'),
'encrypted-color')
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/5ca5eb8858b0cf45d90709cb199bd47a…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/5ca5eb8858b0cf45d90709cb199bd47a…
You're receiving this email because of your account on dev.gajim.org.