[gnome-power-manager/gnome-2-26] Save the caches value before we emit the inhibit and idle signals, in case they are used in the hand
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-power-manager/gnome-2-26] Save the caches value before we emit the inhibit and idle signals, in case they are used in the hand
- Date: Mon, 3 Aug 2009 16:19:28 +0000 (UTC)
commit 2cd58d48fcc6315233bb3e3a10c922043ec6a7e3
Author: Richard Hughes <richard hughsie com>
Date: Wed Jul 29 11:12:37 2009 +0100
Save the caches value before we emit the inhibit and idle signals, in case they are used in the handler
src/gpm-session.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gpm-session.c b/src/gpm-session.c
index aa91656..70a2d2a 100644
--- a/src/gpm-session.c
+++ b/src/gpm-session.c
@@ -132,8 +132,8 @@ gpm_session_presence_status_changed_cb (DBusGProxy *proxy, guint status, GpmSess
is_idle = (status == GPM_SESSION_STATUS_ENUM_IDLE);
if (is_idle != session->priv->is_idle_old) {
egg_debug ("emitting idle-changed : (%i)", is_idle);
- g_signal_emit (session, signals [IDLE_CHANGED], 0, is_idle);
session->priv->is_idle_old = is_idle;
+ g_signal_emit (session, signals [IDLE_CHANGED], 0, is_idle);
}
}
@@ -339,8 +339,8 @@ gpm_session_inhibit_changed_cb (DBusGProxy *proxy, const gchar *id, GpmSession *
is_inhibited = gpm_session_is_inhibited (session);
if (is_inhibited != session->priv->is_inhibited_old) {
egg_debug ("emitting inhibited-changed : (%i)", is_inhibited);
- g_signal_emit (session, signals [INHIBITED_CHANGED], 0, is_inhibited);
session->priv->is_inhibited_old = is_inhibited;
+ g_signal_emit (session, signals [INHIBITED_CHANGED], 0, is_inhibited);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]