diff options
author | Benjamin Otte <otte@redhat.com> | 2018-04-02 06:15:50 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-04-05 14:56:39 +0200 |
commit | ffc7b2bb0afd04cacbe45cff6f27eb5d644d5b2b (patch) | |
tree | 620bed58191f6d4985cf8e09693c79bba0aeda02 /gtk/gtkiconview.c | |
parent | 12fedca726d42f2087ffc3c5621eeb6757265319 (diff) | |
download | gtk+-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.c | 2 |
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; } |