summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-05-20 00:38:08 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-05-28 20:25:16 +0000
commit302d2a04aebb3d97829b17ca4f27fe62234d2de8 (patch)
tree003a114695f30ea40b8f759a2c8f819ad18d1bd0 /examples
parent9765aabebd5ed699f254155b68109a1bba4fb51f (diff)
downloadgtk+-302d2a04aebb3d97829b17ca4f27fe62234d2de8.tar.gz
Stop using gtk_widget_get_surface
Replace all uses of gtk_widget_get_surface by gtk_native_get_surface.
Diffstat (limited to 'examples')
-rw-r--r--examples/drawing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/drawing.c b/examples/drawing.c
index 08f2872105..da3eeabe73 100644
--- a/examples/drawing.c
+++ b/examples/drawing.c
@@ -29,9 +29,9 @@ size_allocate_cb (GtkWidget *widget,
surface = NULL;
}
- if (gtk_widget_get_surface (widget))
+ if (gtk_native_get_surface (gtk_widget_get_native (widget)))
{
- surface = gdk_surface_create_similar_surface (gtk_widget_get_surface (widget),
+ surface = gdk_surface_create_similar_surface (gtk_native_get_surface (gtk_widget_get_native (widget)),
CAIRO_CONTENT_COLOR,
gtk_widget_get_width (widget),
gtk_widget_get_height (widget));