[gtk] shortcuts window: Fix a leftover use of child properties



commit a7eae67228814bec6fa1ae1c6394101d2b6a2186
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Feb 8 08:22:06 2019 -0500

    shortcuts window: Fix a leftover use of child properties
    
    These properties are gone, use the child meta here.

 gtk/gtkshortcutswindow.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkshortcutswindow.c b/gtk/gtkshortcutswindow.c
index 04fbe3be2d..ba882ac9c9 100644
--- a/gtk/gtkshortcutswindow.c
+++ b/gtk/gtkshortcutswindow.c
@@ -298,7 +298,7 @@ section_notify_cb (GObject    *section,
       gchar *name;
 
       g_object_get (section, "section-name", &name, NULL);
-      gtk_container_child_set (GTK_CONTAINER (priv->stack), GTK_WIDGET (section), "name", name, NULL);
+      g_object_set (gtk_stack_get_page (priv->stack, GTK_WIDGET (section)), "name", name, NULL);
       g_free (name);
     }
   else if (strcmp (pspec->name, "title") == 0)
@@ -702,7 +702,7 @@ gtk_shortcuts_window_get_property (GObject    *object,
           {
             gchar *name = NULL;
 
-            gtk_container_child_get (GTK_CONTAINER (priv->stack), child,
+            g_object_get (gtk_stack_get_page (priv->stack, child),
                                      "name", &name,
                                      NULL);
             g_value_take_string (value, name);


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