Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-application.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2010-02-17 09:13:33 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2010-02-17 09:13:33 (GMT)
commite4687a2fc8498ed87b1c2b8f55cb91dfe7c3ff42 (patch)
treed4f26785ef9b7c6a8d715b6613a565e4976d14ca /shell/ev-application.c
parent327acc671d7437e7dbf264519c669ad71753163a (diff)
Update totem-scrsaver from totem sources
Fixes bug #610173.
Diffstat (limited to 'shell/ev-application.c')
-rw-r--r--shell/ev-application.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/shell/ev-application.c b/shell/ev-application.c
index 9fe6596..5a87014 100644
--- a/shell/ev-application.c
+++ b/shell/ev-application.c
@@ -853,6 +853,9 @@ ev_application_shutdown (EvApplication *application)
ev_application_accel_map_save (application);
+ g_object_unref (application->scr_saver);
+ application->scr_saver = NULL;
+
#ifdef ENABLE_DBUS
if (application->keys) {
g_object_unref (application->keys);
@@ -910,13 +913,14 @@ ev_application_init (EvApplication *ev_application)
ev_application_accel_map_load (ev_application);
+ ev_application->scr_saver = totem_scrsaver_new ();
+
#ifdef ENABLE_DBUS
ev_application->connection = dbus_g_bus_get (DBUS_BUS_STARTER, &error);
if (ev_application->connection) {
dbus_g_connection_register_g_object (ev_application->connection,
APPLICATION_DBUS_OBJECT_PATH,
G_OBJECT (ev_application));
- ev_application->scr_saver = totem_scrsaver_new (ev_application->connection);
} else {
g_warning ("Error connection to DBus: %s\n", error->message);
g_error_free (error);
@@ -992,15 +996,13 @@ ev_application_get_filechooser_uri (EvApplication *application,
void
ev_application_screensaver_enable (EvApplication *application)
{
- if (application->scr_saver)
- totem_scrsaver_enable (application->scr_saver);
+ totem_scrsaver_enable (application->scr_saver);
}
void
ev_application_screensaver_disable (EvApplication *application)
{
- if (application->scr_saver)
- totem_scrsaver_disable (application->scr_saver);
+ totem_scrsaver_disable (application->scr_saver);
}
const gchar *