while ((object_name = va_arg (vargs, gchar *)) != NULL)
{
+ l++;
+ if (l == 1)
+ {
+ ret = g_malloc (sizeof (GObject *));
+ }
+ else
+ {
+ ret = g_realloc (ret, l * sizeof (GObject *));
+ }
+
object = gtk_builder_get_object (priv->gtkbuilder, object_name);
if (G_IS_OBJECT (object))
{
- l++;
- if (l == 1)
- {
- ret = g_malloc (sizeof (GObject *));
- }
- else
- {
- ret = g_realloc (ret, l * sizeof (GObject *));
- }
ret[l - 1] = object;
}
else
{
+ ret[l - 1] = NULL;
g_warning (_("Object «%s» not found."), object_name);
}
}