[eog/gnome-3-6] Fix inhibiting the screensaver in fullscreen modes
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog/gnome-3-6] Fix inhibiting the screensaver in fullscreen modes
- Date: Sat, 13 Oct 2012 13:38:41 +0000 (UTC)
commit 9f093c5ad52ca5e29b27bc55e4da690696abbb6c
Author: Felix Riemann <friemann gnome org>
Date: Sat Oct 13 15:34:59 2012 +0200
Fix inhibiting the screensaver in fullscreen modes
This became broken during the GtkApplication transition.
src/eog-application.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/eog-application.c b/src/eog-application.c
index dde8e67..3fa2e88 100644
--- a/src/eog-application.c
+++ b/src/eog-application.c
@@ -227,9 +227,15 @@ eog_application_init_app_menu (EogApplication *application)
static void
eog_application_startup (GApplication *application)
{
+ EogApplication *app = EOG_APPLICATION (application);
+
G_APPLICATION_CLASS (eog_application_parent_class)->startup (application);
- eog_application_init_app_menu (EOG_APPLICATION (application));
+ eog_application_init_app_menu (app);
+ app->priv->scr_saver = totem_scrsaver_new();
+ g_object_set (app->priv->scr_saver,
+ "reason", "Running in fullscren mode",
+ NULL);
}
static void
@@ -278,6 +284,8 @@ eog_application_finalize (GObject *object)
priv->plugin_engine = NULL;
}
+ g_clear_object (&priv->scr_saver);
+
g_clear_object (&priv->ui_settings);
eog_application_save_accelerators ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]