From 8ac50cf59cc976bd26bcb5575a4443d0319463ba Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Sun, 03 Dec 2006 20:54:44 +0000 Subject: Move screensaver handling to application. No more message on startup. 2006-12-03 Nickolay V. Shmyrev * cut-n-paste/totem-screensaver/totem-scrsaver.c: (screensaver_init_dbus), (totem_scrsaver_new), (totem_scrsaver_init): * cut-n-paste/totem-screensaver/totem-scrsaver.h: * shell/ev-application.c: (ev_application_register_service), (ev_application_screensaver_enable), (ev_application_screensaver_disable): * shell/ev-application.h: * shell/ev-window.c: (ev_window_run_presentation), (ev_window_stop_presentation), (build_comments_string), (ev_window_init): Move screensaver handling to application. No more message on startup. --- (limited to 'shell/ev-application.h') diff --git a/shell/ev-application.h b/shell/ev-application.h index 4f3ce7e..53e97c2 100644 --- a/shell/ev-application.h +++ b/shell/ev-application.h @@ -32,6 +32,7 @@ #ifndef HAVE_GTK_RECENT #include "egg-recent-model.h" #endif +#include "totem-scrsaver.h" G_BEGIN_DECLS @@ -58,6 +59,8 @@ struct _EvApplication { #ifndef HAVE_GTK_RECENT EggRecentModel *recent_model; #endif + + TotemScrsaver *scr_saver; gchar *last_chooser_uri; }; @@ -103,7 +106,8 @@ EggRecentModel *ev_application_get_recent_model (EvApplication *applicati void ev_application_set_chooser_uri (EvApplication *application, const gchar *uri); const gchar *ev_application_get_chooser_uri (EvApplication *application); - +void ev_application_screensaver_enable (EvApplication *application); +void ev_application_screensaver_disable (EvApplication *application); G_END_DECLS #endif /* !EV_APPLICATION_H */ -- cgit v0.9.1