diff options
author | Christian Persch <[email protected]> | 2012-06-13 00:25:29 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-03-22 08:43:51 +0100 |
commit | 21073d44b5dd40facc67ac3108802559d7b13448 (patch) | |
tree | a6eb26d2300b6c2b94ee459c40ad9f736bebb0f6 /shell/ev-application.c | |
parent | 674a6b31d3e4928e67bc574d2ed7758f19da52ac (diff) | |
download | atril-21073d44b5dd40facc67ac3108802559d7b13448.tar.bz2 atril-21073d44b5dd40facc67ac3108802559d7b13448.tar.xz |
shell: Use GtkApplication to inhibit the screensaver
Remove TotemScrsaver copy, and use GtkApplication inhibition instead.
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-6&id=612701f
Diffstat (limited to 'shell/ev-application.c')
-rw-r--r-- | shell/ev-application.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/shell/ev-application.c b/shell/ev-application.c index a64a0568..601a09a6 100644 --- a/shell/ev-application.c +++ b/shell/ev-application.c @@ -32,8 +32,6 @@ #include <gtk/gtk.h> #include <gdk/gdkx.h> -#include "totem-scrsaver.h" - #include "eggsmclient.h" #include "ev-application.h" @@ -59,8 +57,6 @@ struct _EvApplication { gboolean doc_registered; #endif - TotemScrsaver *scr_saver; - EggSMClient *smclient; }; @@ -885,9 +881,6 @@ ev_application_shutdown (GApplication *gapplication) ev_application_accel_map_save (application); - g_object_unref (application->scr_saver); - application->scr_saver = NULL; - g_free (application->dot_dir); application->dot_dir = NULL; @@ -1002,11 +995,6 @@ static void ev_application_init(EvApplication* ev_application) ev_application_init_session (ev_application); ev_application_accel_map_load (ev_application); - - ev_application->scr_saver = totem_scrsaver_new (); - g_object_set (ev_application->scr_saver, - "reason", _("Running in presentation mode"), - NULL); } gboolean @@ -1066,18 +1054,6 @@ ev_application_get_media_keys (EvApplication *application) #endif /* ENABLE_DBUS */ } -void -ev_application_screensaver_enable (EvApplication *application) -{ - totem_scrsaver_enable (application->scr_saver); -} - -void -ev_application_screensaver_disable (EvApplication *application) -{ - totem_scrsaver_disable (application->scr_saver); -} - const gchar * ev_application_get_dot_dir (EvApplication *application, gboolean create) |