Philipp Hörist pushed to branch master at gajim / gajim
Commits:
6e30706f by lovetox at 2022-03-19T14:35:05+01:00
Respect global proxy setting
This has gone missing at some point
- - - - -
1 changed file:
- gajim/common/helpers.py
Changes:
=====================================
gajim/common/helpers.py
=====================================
@@ -714,7 +714,9 @@ def get_retraction_text(account: str, moderator_jid: str,
def get_user_proxy(account: str) -> Optional[ProxyData]:
proxy_name = app.settings.get_account_setting(account, 'proxy')
if not proxy_name:
- return None
+ proxy_name = app.settings.get('global_proxy')
+ if not proxy_name:
+ return None
return get_proxy(proxy_name)
def get_proxy(proxy_name: str) -> Optional[ProxyData]:
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/6e30706fdb2707a21716a2b5ad587487…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/6e30706fdb2707a21716a2b5ad587487…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
ae2b9a75 by wurstsalat at 2022-03-16T14:17:54+01:00
StatusIcon: Don't set attention icon
Gajim isn't using IndicatorStatus.ATTENTION, and it seems to confuse some DEs
- - - - -
1 changed file:
- gajim/gtk/status_icon.py
Changes:
=====================================
gajim/gtk/status_icon.py
=====================================
@@ -294,8 +294,6 @@ def __init__(self) -> None:
'dcraven-online',
appindicator.IndicatorCategory.COMMUNICATIONS)
self._status_icon.set_icon_theme_path(str(configpaths.get('ICONS')))
- self._status_icon.set_attention_icon_full('dcraven-message-new',
- 'New Message')
self._status_icon.set_status(appindicator.IndicatorStatus.ACTIVE)
self._status_icon.set_menu(self._ui.systray_context_menu)
self._status_icon.set_secondary_activate_target(
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ae2b9a75e4ad0867b1d5b51816117084…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ae2b9a75e4ad0867b1d5b51816117084…
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:
4c0e15d0 by lovetox at 2022-03-15T23:18:11+01:00
Client: Add type annotations
- - - - -
1 changed file:
- nbxmpp/client.py
Changes:
=====================================
nbxmpp/client.py
=====================================
@@ -16,6 +16,8 @@
# along with this program; If not, see <http://www.gnu.org/licenses/>.
import logging
+from typing import Any
+from typing import Optional
from gi.repository import GLib
@@ -570,8 +572,13 @@ class Client(Observable):
GLib.source_remove(self._ping_source_id)
self._ping_source_id = None
- def send_stanza(self, stanza, now=False, callback=None,
- timeout=None, user_data=None):
+ def send_stanza(self,
+ stanza: Protocol,
+ now: bool = False,
+ callback: Optional[Any] = None,
+ timeout: Optional[int] = None,
+ user_data: Optional[Any] = None) -> str:
+
if user_data is not None and not isinstance(user_data, dict):
raise ValueError('arg user_data must be of dict type')
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/4c0e15d078ae9fa6c88aa2f8…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/4c0e15d078ae9fa6c88aa2f8…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
5a4699ee by wurstsalat at 2022-03-15T22:51:01+01:00
ConfirmationDialog: Fix propagating checkbutton state for DELETE_EVENT
Fixes #10472
- - - - -
1 changed file:
- gajim/gtk/dialogs.py
Changes:
=====================================
gajim/gtk/dialogs.py
=====================================
@@ -253,6 +253,11 @@ def __init__(self,
self._buttons: dict[Gtk.ResponseType, DialogButton] = {}
for button in buttons:
+ if button.response == Gtk.ResponseType.CANCEL:
+ # Map CANCEL to DELETE_EVENT. Otherwise, button args for
+ # CANCEL will not be propagated (i.e. checkbutton state)
+ self._buttons[Gtk.ResponseType.DELETE_EVENT] = button
+
self._buttons[button.response] = button
self.add_button(button.text, button.response)
if button.is_default:
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/5a4699ee353b789cee8de96df42669ad…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/5a4699ee353b789cee8de96df42669ad…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
9d5a13e7 by wurstsalat at 2022-03-15T14:28:55+01:00
GtkStatusIcon: Set tooltip for Windows
- - - - -
1 changed file:
- gajim/gtk/status_icon.py
Changes:
=====================================
gajim/gtk/status_icon.py
=====================================
@@ -220,6 +220,7 @@ def __init__(self) -> None:
self._hide_menuitem_added = False
self._status_icon = Gtk.StatusIcon()
+ self._status_icon.set_tooltip_text('Gajim') # Needed for Windows
self._status_icon.connect('activate', self._on_activate)
self._status_icon.connect('popup-menu', self._on_popup_menu)
self._status_icon.connect('size-changed', self._on_size_changed)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/9d5a13e7bb55001b4877da143db57fce…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/9d5a13e7bb55001b4877da143db57fce…
You're receiving this email because of your account on dev.gajim.org.