From 4817ee9e8d7f9d854870aa10085f3b6f1da3eadf Mon Sep 17 00:00:00 2001 From: Felix Riemann Date: Sun, 23 Sep 2012 17:50:02 +0200 Subject: Use GtkApplication to inhibit the screensaver during slideshows Realized in a similar fashion as in Evince and Totem. https://bugzilla.gnome.org/show_bug.cgi?id=684581 origin commit: https://gitlab.gnome.org/GNOME/eog/commit/e8b50ab --- src/eom-application.c | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'src/eom-application.c') diff --git a/src/eom-application.c b/src/eom-application.c index dbf1cb1..6135ae1 100644 --- a/src/eom-application.c +++ b/src/eom-application.c @@ -32,8 +32,6 @@ #include "eom-application.h" #include "eom-util.h" -#include "totem-scrsaver.h" - #include #include #include @@ -485,34 +483,6 @@ eom_application_reset_toolbars_model (EomApplication *app) EGG_TB_MODEL_NOT_REMOVABLE); } -/** - * eom_application_screensaver_enable: - * @application: an #EomApplication. - * - * Enables the screensaver. Usually necessary after a call to - * eom_application_screensaver_disable(). - **/ -void -eom_application_screensaver_enable (EomApplication *application) -{ - if (application->scr_saver) - totem_scrsaver_enable (application->scr_saver); -} - -/** - * eom_application_screensaver_disable: - * @application: an #EomApplication. - * - * Disables the screensaver. Useful when the application is in fullscreen or - * similar mode. - **/ -void -eom_application_screensaver_disable (EomApplication *application) -{ - if (application->scr_saver) - totem_scrsaver_disable (application->scr_saver); -} - static void eom_application_load_accelerators (void) { -- cgit v1.2.1