Daniel Brötzmann pushed to branch gtk4 at gajim / gajim
Commits:
15897192 by wurstsalat at 2024-10-04T19:21:50+02:00
cfix: Contacts: Import convert_surface_to_texture inside method
- - - - -
1 changed file:
- gajim/common/modules/contacts.py
Changes:
=====================================
gajim/common/modules/contacts.py
=====================================
@@ -51,9 +51,6 @@
from gajim.common.util.muc import get_groupchat_name
from gajim.common.util.user_strings import chatstate_to_string
-# TODO GTK4: Move to common
-from gajim.gtk.util import convert_surface_to_texture
-
class ContactSettings:
def __init__(self, account: str, jid: JID) -> None:
@@ -567,6 +564,7 @@ def get_avatar(self,
default=default,
transport_icon=transport_icon,
style=style)
+ from gajim.gtk.util import convert_surface_to_texture
return convert_surface_to_texture(surface)
def update_presence(self, presence_data: PresenceData) -> None:
@@ -853,6 +851,7 @@ def get_avatar(self, size: int, scale: int) -> Gdk.Texture:
size,
scale,
transport_icon=transport_icon)
+ from gajim.gtk.util import convert_surface_to_texture
return convert_surface_to_texture(surface)
def _on_user_signal(self,
@@ -1058,6 +1057,7 @@ def get_avatar(self,
show = self.show.value if add_show else None
surface = app.app.avatar_storage.get_surface(
self, size, scale, show, style=style)
+ from gajim.gtk.util import convert_surface_to_texture
return convert_surface_to_texture(surface)
def update_presence(self, presence: MUCPresenceData) -> None:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/158971921cc7eb49aef02a75acd3a26ca43ebd6d
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/158971921cc7eb49aef02a75acd3a26ca43ebd6d
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]