diff options
Diffstat (limited to 'demos/gtk-demo/drawingarea.c')
-rw-r--r-- | demos/gtk-demo/drawingarea.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/demos/gtk-demo/drawingarea.c b/demos/gtk-demo/drawingarea.c index 875c4b7feb..d16a417bc4 100644 --- a/demos/gtk-demo/drawingarea.c +++ b/demos/gtk-demo/drawingarea.c @@ -198,7 +198,10 @@ do_drawingarea (GtkWidget *do_widget) G_CALLBACK (close_window), NULL); vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); - g_object_set (vbox, "margin", 16, NULL); + gtk_widget_set_margin_start (vbox, 16); + gtk_widget_set_margin_end (vbox, 16); + gtk_widget_set_margin_top (vbox, 16); + gtk_widget_set_margin_bottom (vbox, 16); gtk_container_add (GTK_CONTAINER (window), vbox); /* |