Philipp Hörist pushed to branch master at gajim / gajim
Commits:
ae397ca8 by lovetox at 2020-04-30T21:51:19+02:00
Message: Allow plugins to add arbitrary xml elements
- - - - -
2 changed files:
- gajim/common/modules/message.py
- gajim/common/structs.py
Changes:
=====================================
gajim/common/modules/message.py
=====================================
@@ -343,6 +343,11 @@ class Message(BaseModule):
stanza.setTag('no-store',
namespace=Namespace.MSG_HINTS)
+ # Add other nodes
+ if message.nodes is not None:
+ for node in message.nodes:
+ stanza.addChild(node=node)
+
return stanza
def log_message(self, message):
=====================================
gajim/common/structs.py
=====================================
@@ -65,7 +65,8 @@ class OutgoingMessage:
correct_id=None,
automatic_message=False,
oob_url=None,
- xhtml=None):
+ xhtml=None,
+ nodes=None):
if type_ not in ('chat', 'groupchat', 'normal', 'headline'):
raise ValueError('Unknown message type: %s' % type_)
@@ -110,6 +111,8 @@ class OutgoingMessage:
if xhtml is not None:
self.additional_data.set_value('gajim', 'xhtml', xhtml)
+ self.nodes = nodes
+
self.timestamp = None
self.message_id = None
self.stanza = None
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ae397ca83385adc46e4e5510752360ee…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ae397ca83385adc46e4e5510752360ee…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch gajim_1.2 at gajim / gajim
Commits:
8d609c8d by lovetox at 2020-04-29T21:12:14+02:00
Change default tabs position to left
This should users get accustomed to the UI changes we plan for 1.3
Also it hides the problems with the not scrollable tabs list because much more tabs fit the window
- - - - -
20b4ce54 by lovetox at 2020-04-29T22:11:39+02:00
Remove unused code
- - - - -
65506e31 by lovetox at 2020-04-29T22:11:39+02:00
Adapt nbxmpp handler registration
- - - - -
3 changed files:
- gajim/common/client.py
- gajim/common/config.py
- gajim/plugins/pluginmanager.py
Changes:
=====================================
gajim/common/client.py
=====================================
@@ -374,12 +374,7 @@ class Client(ConnectionHandlers):
def _register_new_handlers(self):
for handler in modules.get_handlers(self):
- if len(handler) == 5:
- name, func, typ, ns, priority = handler
- self._client.register_handler(
- name, func, typ, ns, priority=priority)
- else:
- self._client.register_handler(*handler)
+ self._client.register_handler(handler)
self.handlers_registered = True
def get_module(self, name):
=====================================
gajim/common/config.py
=====================================
@@ -170,7 +170,7 @@ class Config:
'last_save_dir': [opt_str, ''],
'last_send_dir': [opt_str, ''],
'last_sounds_dir': [opt_str, ''],
- 'tabs_position': [opt_str, 'top'],
+ 'tabs_position': [opt_str, 'left'],
'tabs_always_visible': [opt_bool, False, _('Show tab when only one conversation?')],
'tabs_border': [opt_bool, False, _('Show tabbed notebook border in chat windows?')],
'tabs_close_button': [opt_bool, True, _('Show close button in tab?')],
=====================================
gajim/plugins/pluginmanager.py
=====================================
@@ -412,7 +412,7 @@ class PluginManager(metaclass=Singleton):
# in connection_handlers._register_handlers()
if con.handlers_registered:
for handler in instance.handlers:
- con.connection.register_handler(*handler)
+ con.connection.register_handler(handler)
def _unregister_modules_with_handlers(self, plugin):
if not hasattr(plugin, 'modules'):
@@ -428,7 +428,7 @@ class PluginManager(metaclass=Singleton):
for handler in instance.handlers:
if len(handler) > 4:
handler = handler[:4]
- con.connection.unregister_handler(*handler)
+ con.connection.unregister_handler(handler)
def activate_plugin(self, plugin):
'''
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/6266db68b326ba3d9816ff013493ad9…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/6266db68b326ba3d9816ff013493ad9…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
d41e99f3 by lovetox at 2020-04-29T21:01:06+02:00
Change default tabs position to left
This should users get accustomed to the UI changes we plan for 1.3
Also it hides the problems with the not scrollable tabs list because much more tabs fit the window
- - - - -
135be5ca by lovetox at 2020-04-29T21:40:23+02:00
Remove unused code
- - - - -
147ed3c5 by lovetox at 2020-04-29T22:08:53+02:00
Adapt nbxmpp handler registration
- - - - -
3 changed files:
- gajim/common/client.py
- gajim/common/config.py
- gajim/plugins/pluginmanager.py
Changes:
=====================================
gajim/common/client.py
=====================================
@@ -374,12 +374,7 @@ class Client(ConnectionHandlers):
def _register_new_handlers(self):
for handler in modules.get_handlers(self):
- if len(handler) == 5:
- name, func, typ, ns, priority = handler
- self._client.register_handler(
- name, func, typ, ns, priority=priority)
- else:
- self._client.register_handler(*handler)
+ self._client.register_handler(handler)
self.handlers_registered = True
def get_module(self, name):
=====================================
gajim/common/config.py
=====================================
@@ -170,7 +170,7 @@ class Config:
'last_save_dir': [opt_str, ''],
'last_send_dir': [opt_str, ''],
'last_sounds_dir': [opt_str, ''],
- 'tabs_position': [opt_str, 'top'],
+ 'tabs_position': [opt_str, 'left'],
'tabs_always_visible': [opt_bool, False, _('Show tab when only one conversation?')],
'tabs_border': [opt_bool, False, _('Show tabbed notebook border in chat windows?')],
'tabs_close_button': [opt_bool, True, _('Show close button in tab?')],
=====================================
gajim/plugins/pluginmanager.py
=====================================
@@ -412,7 +412,7 @@ class PluginManager(metaclass=Singleton):
# in connection_handlers._register_handlers()
if con.handlers_registered:
for handler in instance.handlers:
- con.connection.register_handler(*handler)
+ con.connection.register_handler(handler)
def _unregister_modules_with_handlers(self, plugin):
if not hasattr(plugin, 'modules'):
@@ -428,7 +428,7 @@ class PluginManager(metaclass=Singleton):
for handler in instance.handlers:
if len(handler) > 4:
handler = handler[:4]
- con.connection.unregister_handler(*handler)
+ con.connection.unregister_handler(handler)
def activate_plugin(self, plugin):
'''
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/9b7ae7d5efc15dedb4e458dc63915d8…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/9b7ae7d5efc15dedb4e458dc63915d8…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch gajim_1.2 at gajim / gajim
Commits:
6b69b4cb by lovetox at 2020-04-29T20:56:49+02:00
Roster: Don't fail when changing status message
Fixes #10080
- - - - -
1040065f by lovetox at 2020-04-29T20:56:49+02:00
Dependency Check: Show better error message
Fixes #10073
- - - - -
43176228 by lovetox at 2020-04-29T20:56:49+02:00
Move SHOW_LIST into the const module
- - - - -
ac48bddc by lovetox at 2020-04-29T20:56:49+02:00
Fix const SHOW_LIST access
- - - - -
cfe2336b by André at 2020-04-29T20:56:49+02:00
Refactor publishing Tunes
- - - - -
4e723336 by lovetox at 2020-04-29T20:56:49+02:00
CSSConfig: Fetch accounts from config
- - - - -
1c292321 by lovetox at 2020-04-29T20:56:49+02:00
Make more consistent menu labels
- Use Header capitalization https://developer.gnome.org/hig/stable/writing-style.html.en#capitalization
- Use ellipsis whenever an action needs more user input
- - - - -
efd7870d by Daniel Brötzmann at 2020-04-29T20:56:49+02:00
GCTooltip: Remove affiliation coloring
- - - - -
40567215 by Daniel Brötzmann at 2020-04-29T20:56:49+02:00
Remove obsolete css colors and helpers
- - - - -
219ec7e1 by Daniel Brötzmann at 2020-04-29T20:56:49+02:00
Tooltips: Use css colors
- - - - -
29809192 by Daniel Brötzmann at 2020-04-29T20:56:49+02:00
Avatars: Use css show colors
- - - - -
80cd9e3d by Daniel Brötzmann at 2020-04-29T20:56:49+02:00
Tooltips: Remove tooltip_idle_color
- - - - -
6dcd30a3 by Daniel Brötzmann at 2020-04-29T20:56:49+02:00
Tooltips: Remove tooltip_account_name_color
- - - - -
4c9171a4 by Daniel Brötzmann at 2020-04-29T20:56:49+02:00
Themes: Make status colors configurable
- - - - -
8cd5212b by Daniel Brötzmann at 2020-04-29T20:56:49+02:00
GroupchatControl: Add invite button
- - - - -
13e52fb1 by Daniel Brötzmann at 2020-04-29T20:56:49+02:00
GroupchatControl: Remove invite menu entry
- - - - -
1007a020 by lovetox at 2020-04-29T20:56:49+02:00
Rework chat tabs
- Always show new avatars with status
- Remove tabs advanced config options
- Increase tabs width
- - - - -
1fe52fb2 by lovetox at 2020-04-29T20:56:49+02:00
CSS: Add show colors to default-dark.css
- - - - -
f6b3f93e by lovetox at 2020-04-29T20:56:49+02:00
Tooltips: Fix status color for Group Chat tooltip
- - - - -
16d5460f by lovetox at 2020-04-29T20:56:49+02:00
Add feather-hash-symoblic.svg
- - - - -
6266db68 by lovetox at 2020-04-29T20:56:49+02:00
CSS: Add notification colors to default-dark.css
- - - - -
30 changed files:
- gajim/chat_control.py
- gajim/chat_control_base.py
- gajim/common/app.py
- gajim/common/client.py
- gajim/common/config.py
- gajim/common/const.py
- gajim/common/dbus/music_track.py
- gajim/common/helpers.py
- gajim/common/modules/user_tune.py
- gajim/data/gui/application_menu.ui
- gajim/data/gui/groupchat_control.ui
- gajim/data/gui/message_window.ui
- gajim/data/gui/preferences_window.ui
- + gajim/data/icons/hicolor/scalable/devices/feather-hash-symbolic.svg
- gajim/data/style/default-dark.css
- gajim/data/style/default.css
- gajim/data/style/gajim.css
- gajim/gajim.py
- gajim/groupchat_control.py
- gajim/gtk/avatar.py
- gajim/gtk/const.py
- gajim/gtk/css_config.py
- gajim/gtk/preferences.py
- gajim/gtk/themes.py
- gajim/gtk/tooltips.py
- gajim/gtk/util.py
- gajim/gui_interface.py
- gajim/gui_menu_builder.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/548b973fee41b5d305deaf097a1e539…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/548b973fee41b5d305deaf097a1e539…
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:
ff6a5529 by lovetox at 2020-04-29T20:38:01+02:00
Update README.md
- - - - -
85362f4a by lovetox at 2020-04-29T20:38:14+02:00
Update setup.cfg
- - - - -
8a817d6c by lovetox at 2020-04-29T20:39:46+02:00
0.9.95
- - - - -
3 changed files:
- README.md
- nbxmpp/__init__.py
- setup.cfg
Changes:
=====================================
README.md
=====================================
@@ -1,6 +1,6 @@
# Welcome to python-nbxmpp
-`python-nbxmpp` is a Python library that provides a way for Python applications to use the Jabber/XMPP network in a non-blocking way. This library was initially a fork of `xmpppy`, but is now using non-blocking sockets.
+`python-nbxmpp` is a Python library that provides a way for Python applications to use the XMPP network. This library was initially a fork of `xmpppy`.
## Runtime Requirements
=====================================
nbxmpp/__init__.py
=====================================
@@ -4,4 +4,4 @@ from .protocol import *
gi.require_version('Soup', '2.4')
-__version__ = "0.9.94"
+__version__ = "0.9.95"
=====================================
setup.cfg
=====================================
@@ -1,7 +1,7 @@
[metadata]
name = nbxmpp
-version = 0.9.94
-description = Non blocking Jabber/XMPP module
+version = 0.9.95
+description = XMPP Library
author = Yann Leboulanger, Philipp Hoerist
author_email = gajim-devel(a)gajim.org
url = https://dev.gajim.org/gajim/python-nbxmpp
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/compare/ac3f42d49bb4221e073138c…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/compare/ac3f42d49bb4221e073138c…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
fff068ab by lovetox at 2020-04-29T08:34:47+02:00
Tooltips: Fix status color for Group Chat tooltip
- - - - -
1 changed file:
- gajim/gtk/tooltips.py
Changes:
=====================================
gajim/gtk/tooltips.py
=====================================
@@ -209,7 +209,7 @@ class GCTooltip():
# Status
show = helpers.get_uf_show(contact.show.value)
self._ui.user_show.set_text(show)
- colorize_status(self._ui.user_show, contact.show)
+ colorize_status(self._ui.user_show, contact.show.value)
self._ui.user_show.show()
# JID
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/fff068ab8b126252b93c1550bbbf73e1…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/fff068ab8b126252b93c1550bbbf73e1…
You're receiving this email because of your account on dev.gajim.org.