[Xfce4-commits] [xfce/xfce4-power-manager] 01/01: Fix type for kb/display-backlight notifications
noreply at xfce.org
noreply at xfce.org
Sun Oct 29 12:45:19 CET 2017
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-power-manager.
commit 858883bef11dddb134ffee3d04b560236c8ce60e
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Sun Oct 29 12:45:08 2017 +0100
Fix type for kb/display-backlight notifications
---
src/xfpm-backlight.c | 2 +-
src/xfpm-kbd-backlight.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/xfpm-backlight.c b/src/xfpm-backlight.c
index 583e652..811a4b1 100644
--- a/src/xfpm-backlight.c
+++ b/src/xfpm-backlight.c
@@ -171,7 +171,7 @@ xfpm_backlight_show_notification (XfpmBacklight *backlight, gfloat value)
}
/* add the brightness value to the notification */
- notify_notification_set_hint (backlight->priv->n, "value", g_variant_new_double (value));
+ notify_notification_set_hint (backlight->priv->n, "value", g_variant_new_int32 (value));
/* show the notification */
notify_notification_show (backlight->priv->n, NULL);
diff --git a/src/xfpm-kbd-backlight.c b/src/xfpm-kbd-backlight.c
index f954fdd..3dbb406 100644
--- a/src/xfpm-kbd-backlight.c
+++ b/src/xfpm-kbd-backlight.c
@@ -123,7 +123,7 @@ xfpm_kbd_backlight_show_notification (XfpmKbdBacklight *self, gfloat value)
}
/* add the brightness value to the notification */
- notify_notification_set_hint (self->priv->n, "value", g_variant_new_double (value));
+ notify_notification_set_hint (self->priv->n, "value", g_variant_new_int32 (value));
/* show the notification */
notify_notification_show (self->priv->n, NULL);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list