Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
7f75081a by wurstsalat at 2025-10-09T20:48:12+02:00
fix: Tests: Initialize Adw when initializing tests
- - - - -
bc41164a by wurstsalat at 2025-10-09T20:49:24+02:00
cq: Preferences: Rename connection-details.ui
- - - - -
4bb84e66 by wurstsalat at 2025-10-09T20:50:55+02:00
fix: Reference CopyButton to fix template initialization issues
Fixes #12470
- - - - -
6 changed files:
- gajim/data/gui/preference/connection-details.ui →
gajim/data/gui/preference/connection_details.ui
- gajim/gtk/preference/account.py
- gajim/gtk/preference/certificate.py
- gajim/gtk/preference/server_info.py
- test/gtk/__init__.py
- test/gtk/util.py
Changes:
=====================================
gajim/data/gui/preference/connection-details.ui →
gajim/data/gui/preference/connection_details.ui
=====================================
=====================================
gajim/gtk/preference/account.py
=====================================
@@ -33,6 +33,7 @@
from gajim.gtk.preference.archiving import ArchivingPreferences
from gajim.gtk.preference.blocked_contacts import BlockedContacts
from gajim.gtk.preference.manage_roster import ManageRoster
+from gajim.gtk.preference.widgets import CopyButton
from gajim.gtk.preference.widgets import PlaceholderBox
from gajim.gtk.settings import GajimPreferencePage
from gajim.gtk.settings import GajimPreferencesGroup
@@ -489,11 +490,11 @@ def _on_proxy_edit(*args: Any) -> None:
open_window("ManageProxies")
[email protected](string=get_ui_string("preference/connection-details.ui"))
[email protected](string=get_ui_string("preference/connection_details.ui"))
class AccountConnectionDetailsGroup(Adw.PreferencesGroup, SignalManager):
__gtype_name__ = "AccountConnectionDetailsGroup"
- _clipboard_button: Gtk.Button = Gtk.Template.Child()
+ _clipboard_button: CopyButton = Gtk.Template.Child()
_domain: Adw.ActionRow = Gtk.Template.Child()
_dns: Adw.ActionRow = Gtk.Template.Child()
_ip_port: Adw.ActionRow = Gtk.Template.Child()
=====================================
gajim/gtk/preference/certificate.py
=====================================
@@ -26,6 +26,7 @@
from gajim.common.util.text import format_bytes_as_hex
from gajim.common.util.version import package_version
+from gajim.gtk.preference.widgets import CopyButton
from gajim.gtk.util.classes import SignalManager
from gajim.gtk.util.misc import get_ui_string
@@ -37,7 +38,7 @@ class CertificatePage(Adw.PreferencesPage, SignalManager):
__gtype_name__ = "CertificatePage"
- _clipboard_button: Gtk.Button = Gtk.Template.Child()
+ _clipboard_button: CopyButton = Gtk.Template.Child()
_account_label_row: Adw.ActionRow = Gtk.Template.Child()
_account_address_row: Adw.ActionRow = Gtk.Template.Child()
_issued_to_common_name_row: Adw.ActionRow = Gtk.Template.Child()
=====================================
gajim/gtk/preference/server_info.py
=====================================
@@ -28,6 +28,7 @@
from gajim.common.util.uri import open_uri
from gajim.gtk.const import SettingType
+from gajim.gtk.preference.widgets import CopyButton
from gajim.gtk.preference.widgets import PlaceholderBox
from gajim.gtk.settings import GajimPreferencePage
from gajim.gtk.settings import GajimPreferencesGroup
@@ -43,7 +44,7 @@
class AccountProviderInfoGroup(Adw.PreferencesGroup, SignalManager):
__gtype_name__ = "AccountProviderInfoGroup"
- _clipboard_button: Gtk.Button = Gtk.Template.Child()
+ _clipboard_button: CopyButton = Gtk.Template.Child()
_hostname_row: Adw.ActionRow = Gtk.Template.Child()
_software_row: Adw.ActionRow = Gtk.Template.Child()
_uptime_row: Adw.ActionRow = Gtk.Template.Child()
=====================================
test/gtk/__init__.py
=====================================
@@ -2,6 +2,10 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
+from gi.repository import Adw
+
from gajim.main import gi_require_versions
gi_require_versions()
+
+Adw.init()
=====================================
test/gtk/util.py
=====================================
@@ -54,8 +54,6 @@ def init_settings() -> None:
def run_app(load_default_styles: bool = True, load_custom_icons: bool = True)
-> None:
- Adw.init()
-
if load_default_styles:
load_style("gajim.css", CSSPriority.APPLICATION)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/ba2f9115c15487382b0c42639eedacd07a4e1733...4bb84e663ed73e7c7841c78be52e4e44504a3948
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/ba2f9115c15487382b0c42639eedacd07a4e1733...4bb84e663ed73e7c7841c78be52e4e44504a3948
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]