summaryrefslogtreecommitdiff
path: root/browser-plugin
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2010-06-12 17:12:51 +0100
committerBastien Nocera <hadess@hadess.net>2010-06-12 17:17:52 +0100
commitc3a022f5d4228b65c86ae1cf4e16dfacca44f15e (patch)
tree19e8a29825652a1e13640f1653fd533ab5305d96 /browser-plugin
parent781e168a0b35783a650732cfba46670534dc7065 (diff)
Fix up screensaver support
Copy evince screensaver code, and add the ability to set the reason outside the module itself.
Diffstat (limited to 'browser-plugin')
-rw-r--r--browser-plugin/totem-plugin-viewer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/browser-plugin/totem-plugin-viewer.c b/browser-plugin/totem-plugin-viewer.c
index b60a0f8f..938dc572 100644
--- a/browser-plugin/totem-plugin-viewer.c
+++ b/browser-plugin/totem-plugin-viewer.c
@@ -1960,6 +1960,9 @@ totem_embedded_construct (TotemEmbedded *emb,
if (!emb->hidden) {
gtk_widget_set_size_request (emb->window, width, height);
emb->scrsaver = totem_scrsaver_new ();
+ g_object_set (emb->scrsaver,
+ "reason", _("Playing a movie"),
+ NULL);
}
#ifdef GNOME_ENABLE_DEBUG