[totem] Fix disabling of the screensaver in the browser plugin



commit 38cf9321450187fe91d0b76ca65014595b6a1be8
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Oct 16 17:56:52 2009 +0100

    Fix disabling of the screensaver in the browser plugin
    
    Did this ever work? Probably not...
    
    https://bugzilla.gnome.org/show_bug.cgi?id=554750

 lib/totem-scrsaver.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/lib/totem-scrsaver.c b/lib/totem-scrsaver.c
index 6854ed4..0888532 100644
--- a/lib/totem-scrsaver.c
+++ b/lib/totem-scrsaver.c
@@ -433,8 +433,7 @@ totem_scrsaver_set_state (TotemScrsaver *scr, gboolean enable)
 	if (scr->priv->disabled == !enable)
 		return;
 
-	scr->priv->disabled = !enable;
-	if (scr->priv->disabled != FALSE)
+	if (enable == FALSE)
 		totem_scrsaver_disable (scr);
 	else
 		totem_scrsaver_enable (scr);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]