forked from AuroraMiddleware/gtk
iconview: Render drop highlight properly
Use :drop(active) and render a frame, not focus.
This commit is contained in:
parent
1eefaf8b41
commit
edb175cf75
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user