diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-05-20 00:38:08 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-05-28 20:25:16 +0000 |
commit | 302d2a04aebb3d97829b17ca4f27fe62234d2de8 (patch) | |
tree | 003a114695f30ea40b8f759a2c8f819ad18d1bd0 /examples | |
parent | 9765aabebd5ed699f254155b68109a1bba4fb51f (diff) | |
download | gtk+-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.c | 4 |
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)); |