gtk-demo: Fix the shortcuts demo
authorMatthias Clasen <mclasen@redhat.com>
Sat, 28 Mar 2020 04:05:48 +0000 (00:05 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 28 Mar 2020 04:08:12 +0000 (00:08 -0400)
We don't have margins anymore.

demos/gtk-demo/shortcut_triggers.c

index d5b59c3de8a173428bc5b09dfd2da82fe2e747b3..c57edea5fcd62004216414a3fb0af798c6de3975 100644 (file)
@@ -61,7 +61,10 @@ do_shortcut_triggers (GtkWidget *do_widget)
                         G_CALLBACK (gtk_widget_destroyed), &window);
 
       list = gtk_list_box_new ();
-      g_object_set (list, "margin", 6, NULL);
+      gtk_widget_set_margin_top (list, 6);
+      gtk_widget_set_margin_bottom (list, 6);
+      gtk_widget_set_margin_start (list, 6);
+      gtk_widget_set_margin_end (list, 6);
       gtk_container_add (GTK_CONTAINER (window), list);
 
       for (i = 0; i < G_N_ELEMENTS (shortcuts); i++)