Commit f51f60bf authored by Juan Pablo Ugarte's avatar Juan Pablo Ugarte
Browse files

Fix compilation by checking for gtk_container_class_set_template_from_string()

parent 33f5f7ed
......@@ -254,7 +254,7 @@ dnl ================================================================
dnl Check for extra functions
dnl ================================================================
AC_CHECK_FUNCS(gtk_builder_add_from_resource)
AC_CHECK_FUNCS(gtk_container_class_set_template_from_string)
AC_SUBST([GLADE_PREFIX])
......
......@@ -809,7 +809,9 @@ glade_widget_adaptor_set_template (GladeWidgetAdaptor *adaptor,
/* Update container class template */
object_type = glade_widget_adaptor_get_object_type (adaptor);
klass = g_type_class_peek (object_type);
#if HAVE_GTK_CONTAINER_CLASS_SET_TEMPLATE_FROM_STRING
gtk_container_class_set_template_from_string (klass, priv->template_xml);
#endif
gwa_template_rebuild_objects (adaptor, object_type);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment