mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-14 19:55:12 +01:00
Improve the wording of the warning for invalid
values. (#117246, Mariano Suarez-Alvarez)
This commit is contained in:
parent
18042ea064
commit
29606d90b0
@ -559,7 +559,7 @@ object_set_property (GObject *object,
|
|||||||
{
|
{
|
||||||
gchar *contents = g_strdup_value_contents (value);
|
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,
|
contents,
|
||||||
G_VALUE_TYPE_NAME (value),
|
G_VALUE_TYPE_NAME (value),
|
||||||
pspec->name,
|
pspec->name,
|
||||||
@ -1532,6 +1532,13 @@ g_value_set_object (GValue *value,
|
|||||||
void
|
void
|
||||||
g_value_set_object_take_ownership (GValue *value,
|
g_value_set_object_take_ownership (GValue *value,
|
||||||
gpointer v_object)
|
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));
|
g_return_if_fail (G_VALUE_HOLDS_OBJECT (value));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user