static void gstyle_slidein_add_child (GtkBuildable *buildable, GtkBuilder *builder, GObject *child, const gchar *type) { GstyleSlidein *self = (GstyleSlidein *)buildable; g_assert (GSTYLE_SLIDEIN (self)); g_assert (GTK_IS_BUILDER (builder)); g_assert (G_IS_OBJECT (child)); if (!GTK_IS_WIDGET (child)) { g_warning ("Attempt to add a child of type \"%s\" to a \"%s\"", G_OBJECT_TYPE_NAME (child), G_OBJECT_TYPE_NAME (self)); return; } if (type != NULL && g_strcmp0 (type, "slide") == 0) gstyle_slidein_add_slide (GSTYLE_SLIDEIN (buildable), GTK_WIDGET (child)); else if (type == NULL) GTK_CONTAINER_CLASS (gstyle_slidein_parent_class)->add (GTK_CONTAINER (buildable), GTK_WIDGET (child)); else GTK_BUILDER_WARN_INVALID_CHILD_TYPE (buildable, type); }
static void gtk_expander_buildable_add_child (GtkBuildable *buildable, GtkBuilder *builder, GObject *child, const gchar *type) { if (!type) gtk_container_add (GTK_CONTAINER (buildable), GTK_WIDGET (child)); else if (strcmp (type, "label") == 0) gtk_expander_set_label_widget (GTK_EXPANDER (buildable), GTK_WIDGET (child)); else GTK_BUILDER_WARN_INVALID_CHILD_TYPE (GTK_EXPANDER (buildable), type); }