diff --git a/gobject/gvaluetypes.c b/gobject/gvaluetypes.c index ac857bfd9..e3406aa71 100644 --- a/gobject/gvaluetypes.c +++ b/gobject/gvaluetypes.c @@ -686,7 +686,7 @@ g_value_set_pointer (GValue *value, } gpointer -g_value_get_pointer (GValue *value) +g_value_get_pointer (const GValue *value) { g_return_val_if_fail (G_IS_VALUE_POINTER (value), NULL); diff --git a/gobject/gvaluetypes.h b/gobject/gvaluetypes.h index 32ba50d50..9f0b143c2 100644 --- a/gobject/gvaluetypes.h +++ b/gobject/gvaluetypes.h @@ -80,7 +80,7 @@ gchar* g_value_get_string (const GValue *value); gchar* g_value_dup_string (const GValue *value); void g_value_set_pointer (GValue *value, gpointer v_pointer); -gpointer g_value_get_pointer (GValue *value); +gpointer g_value_get_pointer (const GValue *value);