Update upstream
This commit is contained in:
@ -77,6 +77,7 @@ marshal_vector_to_drawable_array (scheme *sc,
|
||||
PikaDrawable **drawable_array;
|
||||
gint id;
|
||||
pointer error;
|
||||
GType actual_type = PIKA_TYPE_DRAWABLE;
|
||||
|
||||
guint num_elements = sc->vptr->vector_length (vector);
|
||||
g_debug ("vector has %d elements", num_elements);
|
||||
@ -104,10 +105,15 @@ marshal_vector_to_drawable_array (scheme *sc,
|
||||
g_free (drawable_array);
|
||||
return error;
|
||||
}
|
||||
|
||||
/* Parameters are validated based on the actual type inside the object
|
||||
array. So we set that type here instead of a generic drawable. */
|
||||
if (j == 0)
|
||||
actual_type = G_OBJECT_TYPE (drawable_array[j]);
|
||||
}
|
||||
|
||||
/* Shallow copy. */
|
||||
pika_value_set_object_array (value, PIKA_TYPE_DRAWABLE, (GObject**)drawable_array, num_elements);
|
||||
pika_value_set_object_array (value, actual_type, (GObject**)drawable_array, num_elements);
|
||||
|
||||
g_free (drawable_array);
|
||||
|
||||
|
@ -615,7 +615,7 @@ script_fu_resource_widget (const gchar *title,
|
||||
{
|
||||
GtkWidget *result_widget = NULL;
|
||||
|
||||
g_debug ("%s type: %ld", G_STRFUNC, resource_type);
|
||||
g_debug ("%s type: %" G_GSIZE_FORMAT, G_STRFUNC, resource_type);
|
||||
|
||||
/* Passing NULL resource sets initial choice to resource from context.
|
||||
* Passing empty string for outer widget label, since we provide our own.
|
||||
@ -824,6 +824,10 @@ script_fu_update_models (SFScript *script)
|
||||
FALSE);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
/* Silence warnings about unhandled enumeration values */
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user