[totem/gnome-2-26] Fix disabling of the screensaver in the browser plugin



commit 71b792c0c1df98b4c0637a950b84fe9df39f0d3a
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 089cbb0..74d0354 100644
--- a/lib/totem-scrsaver.c
+++ b/lib/totem-scrsaver.c
@@ -429,8 +429,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]