[gnome-documents] presentation: Prevent inactive displays from being selected
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] presentation: Prevent inactive displays from being selected
- Date: Tue, 30 Sep 2014 15:00:52 +0000 (UTC)
commit 2e00b2c6ddb42f5c790b07d2768993746e4f5fa7
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Sep 29 18:18:08 2014 +0200
presentation: Prevent inactive displays from being selected
eg., if one of them has been turned off from Settings -> Displays.
https://bugzilla.gnome.org/show_bug.cgi?id=737580
src/presentation.js | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/presentation.js b/src/presentation.js
index 20e5b93..4ee28a1 100644
--- a/src/presentation.js
+++ b/src/presentation.js
@@ -164,11 +164,18 @@ const PresentationOutputChooser = new Lang.Class({
this._box.show_all();
}
+
+ if (!output.is_active())
+ row.sensitive = false;
}
},
_onActivated: function(box, row) {
- this.output = row.get_child().output;
+ let output = row.get_child().output;
+ if (!output.is_active())
+ return;
+
+ this.output = output;
this.emit('output-activated', this.output);
this.close();
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]