[gnome-shell/gbsneto/fix-blur-brightness: 4/4] shell/blur-effect: Set float brightness property
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/fix-blur-brightness: 4/4] shell/blur-effect: Set float brightness property
- Date: Thu, 9 Jan 2020 22:04:18 +0000 (UTC)
commit e169e5a30ab7583e7acea2cc0af37c24c46fc86f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Jan 9 17:50:11 2020 -0300
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 9b6c204496..2d49ffafec 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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]