Daniel Brötzmann pushed to branch gtk4 at gajim / gajim
Commits:
63e625ff by wurstsalat at 2024-11-01T19:27:59+01:00
cfix: ChatListRow: Fix drag begin
- - - - -
1 changed file:
- gajim/gtk/chat_list_row.py
Changes:
=====================================
gajim/gtk/chat_list_row.py
=====================================
@@ -24,6 +24,7 @@
from gajim.common.modules.contacts import BareContact
from gajim.common.modules.contacts import GroupchatContact
from gajim.common.modules.contacts import GroupchatParticipant
+from gajim.common.modules.contacts import ResourceContact
from gajim.common.modules.message_util import get_nickname_from_message
from gajim.common.storage.archive import models as mod
from gajim.common.storage.archive.const import ChatDirection
@@ -509,7 +510,7 @@ def _on_prepare(self,
def _on_drag_begin(self, _drag_source: Gtk.DragSource, drag: Gdk.Drag) ->
None:
# TODO: Use widget's snapshot
- assert isinstance(self.contact, ChatContactT)
+ assert not isinstance(self.contact, ResourceContact)
texture = self.contact.get_avatar(AvatarSize.CHAT, 1)
Gtk.DragIcon.set_from_paintable(
drag,
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/63e625ff531c1466ff678aa557f4b7a35a37b3ee
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/63e625ff531c1466ff678aa557f4b7a35a37b3ee
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]