[gnome-shell/gnome-3-8] sessionMode: Add 'allowScreencast' property
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-8] sessionMode: Add 'allowScreencast' property
- Date: Fri, 10 May 2013 17:52:33 +0000 (UTC)
commit 5516cad087b0c92fa1e960521491c640f962023b
Author: Florian Müllner <fmuellner gnome org>
Date: Wed May 8 20:25:34 2013 +0200
sessionMode: Add 'allowScreencast' property
Our built-in screen recorder is implemented as a component, so it will
just be disabled when the session mode doesn't allow screencasting.
However we will expose screencasting functionality on DBus as well, and
while it makes sense to restrict its availablity to the same modes as
the existing recorder, exporting/unexporting the service depending on
the session mode is not very consumer friendly.
For that reason, add an additional 'allowScreencast' property that for now
mirrors the availability of the 'recorder' component.
https://bugzilla.gnome.org/show_bug.cgi?id=696247
js/ui/sessionMode.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js
index 6ddf041..cfb315e 100644
--- a/js/ui/sessionMode.js
+++ b/js/ui/sessionMode.js
@@ -195,6 +195,10 @@ const SessionMode = new Lang.Class({
return this._modeStack[this._modeStack.length - 1];
},
+ get allowScreencast() {
+ return this.components.indexOf('recorder') != -1;
+ },
+
_sync: function() {
let params = this._modes[this.currentMode];
let defaults;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]