[gtk+] GtkSidebar: Don't use internal API
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkSidebar: Don't use internal API
- Date: Fri, 3 Oct 2014 02:02:21 +0000 (UTC)
commit 8495c0c7adcc3b38f6d4b43929c42ba0c4eaf13f
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Oct 2 22:01:14 2014 -0400
GtkSidebar: Don't use internal API
This makes it possible to copy the gtksidebar.c source into
other projects, for early adopters.
gtk/gtksidebar.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtksidebar.c b/gtk/gtksidebar.c
index 707694a..437f692 100644
--- a/gtk/gtksidebar.c
+++ b/gtk/gtksidebar.c
@@ -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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]