From: Matthias Clasen Date: Tue, 7 Jan 2020 02:25:15 +0000 (-0500) Subject: iconview: Render drop highlight properly X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~354^2~54 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=edb175cf7568e75ad3ce7c4818873a04a7e8a805;p=gtk4.git iconview: Render drop highlight properly Use :drop(active) and render a frame, not focus. --- diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index 21ba41a2e1..85f90a2991 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -1754,9 +1754,15 @@ gtk_icon_view_snapshot (GtkWidget *widget, break; } - gtk_snapshot_render_focus (snapshot, context, + + gtk_style_context_save (context); + gtk_style_context_set_state (context, gtk_style_context_get_state (context) | GTK_STATE_FLAG_DROP_ACTIVE); + + gtk_snapshot_render_frame (snapshot, context, rect.x, rect.y, rect.width, rect.height); + + gtk_style_context_restore (context); } if (icon_view->priv->doing_rubberband)