mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
widget: Add a GtkBuildable::add_child implementation
Just call gtk_widget_set_parent in there.
This commit is contained in:
parent
cc5696b710
commit
653b766e30
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user