Improve the wording of the warning for invalid

values.  (#117246, Mariano Suarez-Alvarez)
This commit is contained in:
Matthias Clasen 2003-08-08 19:47:35 +00:00
parent 18042ea064
commit 29606d90b0

View File

@ -559,7 +559,7 @@ object_set_property (GObject *object,
{
gchar *contents = g_strdup_value_contents (value);
g_warning ("value \"%s\" of type `%s' is invalid for property `%s' of type `%s'",
g_warning ("value \"%s\" of type `%s' is invalid or out of range for property `%s' of type `%s'",
contents,
G_VALUE_TYPE_NAME (value),
pspec->name,
@ -1532,6 +1532,13 @@ g_value_set_object (GValue *value,
void
g_value_set_object_take_ownership (GValue *value,
gpointer v_object)
{
g_value_take_object (value, v_object);
}
void
g_value_take_object (GValue *value,
gpointer v_object)
{
g_return_if_fail (G_VALUE_HOLDS_OBJECT (value));