Philipp Hörist pushed to branch gtk4 at gajim / gajim


Commits:
af7a0c86 by Philipp Hörist at 2024-10-20T08:52:51+02:00
cfix: resolve template paths correctly

- - - - -


2 changed files:

- gajim/common/configpaths.py
- gajim/gtk/start_chat.py


Changes:

=====================================
gajim/common/configpaths.py
=====================================
@@ -47,6 +47,12 @@ def get_plugin_dirs() -> list[Path]:
             Path(_paths['PLUGINS_USER'])]
 
 
+def get_ui_path(filename: str) -> str:
+    path = _paths['GUI'] / filename
+    breakpoint()
+    return str(path)
+
+
 def get_paths(type_: PathType) -> Generator[Path, None, None]:
     # pylint: disable=unnecessary-dict-index-lookup
     for key, value in _paths.items():


=====================================
gajim/gtk/start_chat.py
=====================================
@@ -27,6 +27,7 @@
 from nbxmpp.task import Task
 
 from gajim.common import app
+from gajim.common.configpaths import get_ui_path
 from gajim.common.const import AvatarSize
 from gajim.common.const import Direction
 from gajim.common.const import MUC_DISCO_ERRORS
@@ -952,7 +953,7 @@ def __repr__(self) -> str:
         return f"ContactListItem: {self.props.account} - {self.props.jid}"
 
 
[email protected](filename='gajim/data/gui/contact_view_item.ui')
[email protected](filename=get_ui_path('contact_view_item.ui'))
 class ContactViewItem(Gtk.Grid, SignalManager):
     __gtype_name__ = "ContactViewItem"
 
@@ -1118,7 +1119,7 @@ def __repr__(self) -> str:
         return f"GlobalListItem: {self.props.jid} {self.props.name}"
 
 
[email protected](filename='gajim/data/gui/global_view_item.ui')
[email protected](filename=get_ui_path('global_view_item.ui'))
 class GlobalViewItem(Gtk.Box):
     __gtype_name__ = 'GlobalViewItem'
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/af7a0c86725de80a289f78385b429273c6d3d548

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/af7a0c86725de80a289f78385b429273c6d3d548
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]

Reply via email to