Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
335c4a43 by mesonium at 2025-02-16T18:48:50+00:00
cfix: Use paintable to draw chatlist row on drag
- - - - -
2 changed files:
- gajim/data/style/gajim.css
- gajim/gtk/chat_list_row.py
Changes:
=====================================
gajim/data/style/gajim.css
=====================================
@@ -521,6 +521,7 @@ .chatlist-row {
margin: 0 10px 3px 10px;
border: 2px solid transparent;
border-radius: 6px;
+ background-color: @theme_base_color;
}
.chatlist-row:hover{
background-color: @theme_bg_color;
=====================================
gajim/gtk/chat_list_row.py
=====================================
@@ -503,11 +503,12 @@ def _on_prepare(
return Gdk.ContentProvider.new_for_value(value)
def _on_drag_begin(self, _drag_source: Gtk.DragSource, drag: Gdk.Drag) ->
None:
- # TODO: Use widget's snapshot
assert not isinstance(self.contact, ResourceContact)
- texture = self.contact.get_avatar(AvatarSize.CHAT, 1)
Gtk.DragIcon.set_from_paintable(
- drag, texture, int(self._drag_hotspot_x), int(self._drag_hotspot_y)
+ drag,
+ Gtk.WidgetPaintable().new(self),
+ int(self._drag_hotspot_x),
+ int(self._drag_hotspot_y)
)
app.window.highlight_dnd_targets(self, True)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/335c4a43d954db23d61cc0f7b9ac7b660ef161eb
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/335c4a43d954db23d61cc0f7b9ac7b660ef161eb
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]