From ffc7b2bb0afd04cacbe45cff6f27eb5d644d5b2b Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 2 Apr 2018 06:15:50 +0200 Subject: snapshot: Allow passing the bounds of the created paintable This allows being more specific about the size. It's useful in particular when the resulting render nodes might be too small for the size, not only when they are too large. For the latter case, using a clip node would be enough. It also requires adding a clip node when rendering the resulting paintable, but that should be optimized out by GtkSnapshot when not necessary. --- gtk/gtkiconview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk/gtkiconview.c') diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index b9987b294a..cbe65e5a3b 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -6711,7 +6711,7 @@ gtk_icon_view_create_drag_icon (GtkIconView *icon_view, icon_view->priv->item_padding, icon_view->priv->item_padding, FALSE); - paintable = gtk_snapshot_free_to_paintable (snapshot); + paintable = gtk_snapshot_free_to_paintable (snapshot, NULL); return paintable; } -- cgit v1.2.1