summaryrefslogtreecommitdiff
path: root/gtk/gtkiconview.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-04-02 06:15:50 +0200
committerBenjamin Otte <otte@redhat.com>2018-04-05 14:56:39 +0200
commitffc7b2bb0afd04cacbe45cff6f27eb5d644d5b2b (patch)
tree620bed58191f6d4985cf8e09693c79bba0aeda02 /gtk/gtkiconview.c
parent12fedca726d42f2087ffc3c5621eeb6757265319 (diff)
downloadgtk+-ffc7b2bb0afd04cacbe45cff6f27eb5d644d5b2b.tar.gz
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.
Diffstat (limited to 'gtk/gtkiconview.c')
-rw-r--r--gtk/gtkiconview.c2
1 files changed, 1 insertions, 1 deletions
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;
}