diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-05-08 02:19:18 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-05-11 22:21:39 -0400 |
commit | 88141103cdf5fd294b19d4473245f42201aa6b93 (patch) | |
tree | 362ab942aad3cb7da2158ca34e865e00a14489c5 /gtk/gtkstacksidebar.c | |
parent | ff91ce9eb45f0aac43b218b05cbf8e5b89ed8e32 (diff) | |
download | gtk+-88141103cdf5fd294b19d4473245f42201aa6b93.tar.gz |
Don't use container api on GtkListBox
Diffstat (limited to 'gtk/gtkstacksidebar.c')
-rw-r--r-- | gtk/gtkstacksidebar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkstacksidebar.c b/gtk/gtkstacksidebar.c index 37eccfb7c3..f72000ab3b 100644 --- a/gtk/gtkstacksidebar.c +++ b/gtk/gtkstacksidebar.c @@ -236,7 +236,7 @@ add_child (guint position, page = g_list_model_get_item (G_LIST_MODEL (self->pages), position); update_row (self, page, row); - gtk_container_add (GTK_CONTAINER (self->list), row); + gtk_list_box_insert (GTK_LIST_BOX (self->list), row, -1); g_object_set_data (G_OBJECT (row), "child-index", GUINT_TO_POINTER (position)); if (gtk_selection_model_is_selected (self->pages, position)) @@ -270,7 +270,7 @@ clear_sidebar (GtkStackSidebar *self) g_hash_table_iter_init (&iter, self->rows); while (g_hash_table_iter_next (&iter, (gpointer *)&page, (gpointer *)&row)) { - gtk_container_remove (GTK_CONTAINER (self->list), row); + gtk_list_box_remove (GTK_LIST_BOX (self->list), row); g_hash_table_iter_remove (&iter); g_signal_handlers_disconnect_by_func (page, on_page_updated, self); } |