summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-01 13:41:22 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-04 17:01:18 -0400
commit1706b808156431dce49f49ff846f46937c85e8f7 (patch)
tree249e664fca0e93b8c24f49b1c12e31f000174066 /examples
parent7f975472a7d9de73a664170f051d1e7f60690bd8 (diff)
downloadgtk+-1706b808156431dce49f49ff846f46937c85e8f7.tar.gz
Use gtk_frame_set_child throughout
Replace all uses of gtk_container_add for frames with gtk_frame_set_child.
Diffstat (limited to 'examples')
-rw-r--r--examples/drawing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/drawing.c b/examples/drawing.c
index 37c439c904..e00460889f 100644
--- a/examples/drawing.c
+++ b/examples/drawing.c
@@ -149,7 +149,7 @@ activate (GtkApplication *app,
/* set a minimum size */
gtk_widget_set_size_request (drawing_area, 100, 100);
- gtk_container_add (GTK_CONTAINER (frame), drawing_area);
+ gtk_frame_set_child (GTK_FRAME (frame), drawing_area);
gtk_drawing_area_set_draw_func (GTK_DRAWING_AREA (drawing_area), draw_cb, NULL, NULL);