gtk-demo: Fix the shortcuts demo

We don't have margins anymore.
This commit is contained in:
Matthias Clasen 2020-03-28 00:05:48 -04:00
parent fbed55dff9
commit 48910a6d8e

View 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++)