Revert "gtkbin: replace internal api"

This reverts commit 0f4751c08e.

This causes warnings from the notebook and combobox code.
This commit is contained in:
Matthias Clasen
2014-06-16 17:31:56 -04:00
parent b57c04de5c
commit f0f9c2aa37
6 changed files with 36 additions and 13 deletions

View File

@ -1434,7 +1434,8 @@ gtk_assistant_add (GtkContainer *container,
*/
if (!gtk_bin_get_child (GTK_BIN (container)))
{
GTK_CONTAINER_CLASS (gtk_assistant_parent_class)->add (container, page);
gtk_widget_set_parent (page, GTK_WIDGET (container));
_gtk_bin_set_child (GTK_BIN (container), page);
return;
}