summaryrefslogtreecommitdiff
path: root/shell/ev-application.c
diff options
context:
space:
mode:
authorChristian Persch <[email protected]>2012-06-13 00:25:29 +0200
committerraveit65 <[email protected]>2018-03-21 06:56:34 +0100
commit2f89fccf54a858495101cd57bac66ffca657ff62 (patch)
tree3d499f08c0d5b8da3245ecb6136a29616b9d2ec8 /shell/ev-application.c
parent15073fb029c8fc78d7184be7bc0e70d4cbe5ac1b (diff)
downloadatril-2f89fccf54a858495101cd57bac66ffca657ff62.tar.bz2
atril-2f89fccf54a858495101cd57bac66ffca657ff62.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.c24
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)