}
else if (xmlStrcmp (cur->name, (const xmlChar *)"widget") == 0)
{
+ widget = NULL;
+
type = xmlGetProp (cur, (const xmlChar *)"type");
if (strcmp (type, "checkbox") == 0)
{
}
else if (xmlStrcmp (node_widget->name, (const xmlChar *)"field") == 0)
{
+ field = NULL;
+
type = xmlGetProp (node_widget, (const xmlChar *)"type");
if (strcmp (type, "boolean") == 0)
{
node_field = node_field->next;
}
}
+ else
+ {
+ g_warning ("Field of type «%s» not found.", type);
+ }
}
node_widget = node_widget->next;
}
}
+ else
+ {
+ g_warning ("Widget of type «%s» not found.", type);
+ }
}
cur = cur->next;
GObject *object;
- g_return_val_if_fail (IS_GTK_FORM (form), NULL);
+ g_return_if_fail (IS_GTK_FORM (form));
priv = GTK_FORM_GET_PRIVATE (form);
- g_return_val_if_fail (GTK_IS_BUILDER (priv->gtkbuilder), NULL);
+ g_return_if_fail (GTK_IS_BUILDER (priv->gtkbuilder));
- va_start (vargs, form);
+ va_start (vargs, sensitive);
while ((object_name = va_arg (vargs, gchar *)) != NULL)
{