mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
GtkSidebar: Don't use internal API
This makes it possible to copy the gtksidebar.c source into other projects, for early adopters.
This commit is contained in:
parent
db5cbce4d5
commit
8495c0c7ad
@ -192,8 +192,7 @@ gtk_sidebar_init (GtkSidebar *sidebar)
|
||||
GTK_POLICY_NEVER,
|
||||
GTK_POLICY_AUTOMATIC);
|
||||
|
||||
_gtk_bin_set_child (GTK_BIN (sidebar), sw);
|
||||
gtk_widget_set_parent (sw, GTK_WIDGET (sidebar));
|
||||
gtk_container_add (GTK_CONTAINER (sidebar), sw);
|
||||
|
||||
priv->list = GTK_LIST_BOX (gtk_list_box_new ());
|
||||
gtk_widget_show (GTK_WIDGET (priv->list));
|
||||
|
Loading…
Reference in New Issue
Block a user