[gnome-shell/gbsneto/fix-blur-brightness] shell/blur-effect: Set float brightness property
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/fix-blur-brightness] shell/blur-effect: Set float brightness property
- Date: Thu, 9 Jan 2020 20:52:35 +0000 (UTC)
commit 16d069e1c5de6f1a2c369e92e4c88728c3edfc9f
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]