[Rhythmbox-devel] [PATCH 2/2] plugins/power-manager: use GTK_APPLICATION_INHIBIT_SUSPEND instead of IDLE



GTK_APPLICATION_INHIBIT_IDLE prevents screen blanking.
I dont see why it should inhibit screenblanking, its a music player,
not a video player.

Maybe the 2 options should be made configurable, because in party
setting, it might make sense to prevent screen blank.

Signed-off-by: Torben Hohn <torbenh linutronix de>
---
 plugins/power-manager/rb-power-manager-plugin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/power-manager/rb-power-manager-plugin.c b/plugins/power-manager/rb-power-manager-plugin.c
index 4233d73..a68c8cf 100644
--- a/plugins/power-manager/rb-power-manager-plugin.c
+++ b/plugins/power-manager/rb-power-manager-plugin.c
@@ -94,7 +94,7 @@ inhibit (RBGPMPlugin *plugin)
                      NULL);
        g_object_unref (shell);
 
-       plugin->cookie = gtk_application_inhibit (app, window, GTK_APPLICATION_INHIBIT_IDLE, _("Playing"));
+       plugin->cookie = gtk_application_inhibit (app, window, GTK_APPLICATION_INHIBIT_SUSPEND, _("Playing"));
 
        g_object_unref (window);
        g_object_unref (app);
-- 
1.8.4.rc3



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