From: Matthias Clasen Date: Fri, 8 Aug 2003 19:47:35 +0000 (+0000) Subject: Improve the wording of the warning for invalid X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=29606d90b0f5681db13dfcd51cd7c92a64d4c594;p=dana%2Fcg-glib.git Improve the wording of the warning for invalid values. (#117246, Mariano Suarez-Alvarez) --- diff --git a/gobject/gobject.c b/gobject/gobject.c index 591d7803..d172e594 100644 --- a/gobject/gobject.c +++ b/gobject/gobject.c @@ -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));