[gnome-power-manager/gnome-3-0] don't set master_percentage in gpm_backlight_brightness_changed (fixes 650405)
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-power-manager/gnome-3-0] don't set master_percentage in gpm_backlight_brightness_changed (fixes 650405)
- Date: Fri, 20 May 2011 16:32:23 +0000 (UTC)
commit db5e748a181b6a79e5d68ff2346aad39c5203f12
Author: Adam Williamson <awilliam redhat com>
Date: Tue May 17 09:35:31 2011 -0700
don't set master_percentage in gpm_backlight_brightness_changed (fixes 650405)
Signed-off-by: Richard Hughes <richard hughsie com>
src/gpm-backlight.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/gpm-backlight.c b/src/gpm-backlight.c
index a82b5bd..8cf5f70 100644
--- a/src/gpm-backlight.c
+++ b/src/gpm-backlight.c
@@ -144,9 +144,6 @@ gpm_backlight_get_brightness (GpmBacklight *backlight, guint *brightness, GError
static void
gpm_backlight_brightness_changed (GpmBacklight *backlight, guint percentage)
{
- /* save the new percentage */
- backlight->priv->master_percentage = percentage;
-
/* we emit a signal for the brightness applet */
g_debug ("emitting brightness-changed : %i", percentage);
g_dbus_connection_emit_signal (backlight->priv->bus_connection,
@@ -545,6 +542,8 @@ gpm_backlight_idle_changed_cb (GpmIdle *idle, GpmIdleMode mode, GpmBacklight *ba
static void
gpm_backlight_brightness_changed_cb (GpmBrightness *brightness, guint percentage, GpmBacklight *backlight)
{
+ /* save the new percentage */
+ backlight->priv->master_percentage = percentage;
gpm_backlight_brightness_changed (backlight, percentage);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]