Improve the wording of the warning for invalid
authorMatthias Clasen <matthiasc@src.gnome.org>
Fri, 8 Aug 2003 19:47:35 +0000 (19:47 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 8 Aug 2003 19:47:35 +0000 (19:47 +0000)
values.  (#117246, Mariano Suarez-Alvarez)

gobject/gobject.c

index 591d7803c9f0167116f79848cc5f18073d4612d1..d172e59483682669abee9ad459485392475c4574 100644 (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));