summaryrefslogtreecommitdiff
path: root/gtk/gtkrenderbackground.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-01-13 00:39:59 +0100
committerBenjamin Otte <otte@redhat.com>2017-01-13 03:38:36 +0100
commitb58de2d16cbb1b4e8fbdb6aac9d73deb887650e9 (patch)
treefbb9ce909543e5696d9290e1c6d9381d3b36e923 /gtk/gtkrenderbackground.c
parentbc3ba6864174a905d095a3a57a2cb0889d229d9e (diff)
downloadgtk+-b58de2d16cbb1b4e8fbdb6aac9d73deb887650e9.tar.gz
snapshot: Redo pop() API
gtk_snapshot_pop() => removed gtk_snapshot_pop_and_append() => gtk_snapshot_pop() So now there is no way to get a rendernode out of the snapshotting API until you gtk_snapshot_finish().
Diffstat (limited to 'gtk/gtkrenderbackground.c')
-rw-r--r--gtk/gtkrenderbackground.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkrenderbackground.c b/gtk/gtkrenderbackground.c
index 6d2f2fd953..bca7dc13f7 100644
--- a/gtk/gtkrenderbackground.c
+++ b/gtk/gtkrenderbackground.c
@@ -105,7 +105,7 @@ gtk_theming_background_snapshot_color (GtkThemingBackground *bg,
bg_color,
&bg->boxes[clip].bounds,
"BackgroundColor");
- gtk_snapshot_pop_and_append (snapshot);
+ gtk_snapshot_pop (snapshot);
}
}
@@ -506,12 +506,12 @@ gtk_theming_background_snapshot_layer (GtkThemingBackground *bg,
position_y + 0.5 * (repeat_height - image_height));
gtk_css_image_snapshot (image, snapshot, image_width, image_height);
- gtk_snapshot_pop_and_append (snapshot);
+ gtk_snapshot_pop (snapshot);
}
gtk_snapshot_translate_2d (snapshot, - origin->bounds.origin.x, - origin->bounds.origin.y);
- gtk_snapshot_pop_and_append (snapshot);
+ gtk_snapshot_pop (snapshot);
}
static void
@@ -664,9 +664,9 @@ gtk_css_style_snapshot_background (GtkCssStyle *style,
}
else
{
- gtk_snapshot_pop_and_append (snapshot);
+ gtk_snapshot_pop (snapshot);
gtk_theming_background_snapshot_layer (&bg, idx, snapshot);
- gtk_snapshot_pop_and_append (snapshot);
+ gtk_snapshot_pop (snapshot);
}
}