[totem] lib: Fix warning when there's no reason set
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] lib: Fix warning when there's no reason set
- Date: Wed, 23 Feb 2011 01:56:21 +0000 (UTC)
commit 111c7d7a9539ed904c535634c56ac5f79debfed3
Author: Bastien Nocera <hadess hadess net>
Date: Tue Feb 22 23:29:02 2011 +0000
lib: Fix warning when there's no reason set
And D-Bus shows up.
lib/totem-scrsaver.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/lib/totem-scrsaver.c b/lib/totem-scrsaver.c
index bbb4046..07c21c2 100644
--- a/lib/totem-scrsaver.c
+++ b/lib/totem-scrsaver.c
@@ -230,7 +230,8 @@ screensaver_update_dbus_presence (TotemScrsaver *scr)
g_free (name_owner);
/* screensaver just appeared, or reappeared */
- screensaver_disable_dbus (scr);
+ if (priv->reason != NULL)
+ screensaver_disable_dbus (scr);
} else {
priv->have_screensaver_dbus = FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]