widget: Add a GtkBuildable::add_child implementation

Just call gtk_widget_set_parent in there.
This commit is contained in:
Timm Bäder 2017-03-25 17:17:40 +01:00
parent cc5696b710
commit 653b766e30

View File

@ -12164,6 +12164,15 @@ static GQuark quark_builder_has_focus = 0;
static GQuark quark_builder_atk_relations = 0;
static GQuark quark_builder_set_name = 0;
static void
gtk_widget_buildable_add_child (GtkBuildable *buildable,
GtkBuilder *builder,
GObject *child,
const gchar *type)
{
gtk_widget_set_parent (GTK_WIDGET (child), GTK_WIDGET (buildable));
}
static void
gtk_widget_buildable_interface_init (GtkBuildableIface *iface)
{
@ -12179,6 +12188,7 @@ gtk_widget_buildable_interface_init (GtkBuildableIface *iface)
iface->parser_finished = gtk_widget_buildable_parser_finished;
iface->custom_tag_start = gtk_widget_buildable_custom_tag_start;
iface->custom_finished = gtk_widget_buildable_custom_finished;
iface->add_child = gtk_widget_buildable_add_child;
}
static void