From e169e5a30ab7583e7acea2cc0af37c24c46fc86f Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Thu, 9 Jan 2020 17:50:11 -0300 Subject: [PATCH] shell/blur-effect: Set float brightness property The brightness property of ShellBlurEffect is of float type, but we are calling g_value_set_int() in the GObject::get_property() handler, which throws warnings when trying to set the property via g_object_set() and family. Use g_value_set_float() instead. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/924 --- src/shell-blur-effect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell-blur-effect.c b/src/shell-blur-effect.c index 9b6c20449..2d49ffafe 100644 --- a/src/shell-blur-effect.c +++ b/src/shell-blur-effect.c @@ -904,7 +904,7 @@ shell_blur_effect_get_property (GObject *object, break; case PROP_BRIGHTNESS: - g_value_set_int (value, self->brightness); + g_value_set_float (value, self->brightness); break; case PROP_MODE: