iconview: Render drop highlight properly

Use :drop(active) and render a frame, not focus.
This commit is contained in:
Matthias Clasen 2020-01-06 21:25:15 -05:00
parent 1eefaf8b41
commit edb175cf75

View File

@ -1754,9 +1754,15 @@ gtk_icon_view_snapshot (GtkWidget *widget,
break; 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.x, rect.y,
rect.width, rect.height); rect.width, rect.height);
gtk_style_context_restore (context);
} }
if (icon_view->priv->doing_rubberband) if (icon_view->priv->doing_rubberband)