[gtk/matthiasc/for-master: 7/9] gtk-demo: Fix the shortcuts demo



commit 48910a6d8ed8c2d83fab2c663f5d248569057a55
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Mar 28 00:05:48 2020 -0400

    gtk-demo: Fix the shortcuts demo
    
    We don't have margins anymore.

 demos/gtk-demo/shortcut_triggers.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/demos/gtk-demo/shortcut_triggers.c b/demos/gtk-demo/shortcut_triggers.c
index d5b59c3de8..c57edea5fc 100644
--- a/demos/gtk-demo/shortcut_triggers.c
+++ b/demos/gtk-demo/shortcut_triggers.c
@@ -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++)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]