[gnome-sound-recorder/Bug_777862: 2/2] Revert workaround for Bug 777862
- From: Margaret Ford <megford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder/Bug_777862: 2/2] Revert workaround for Bug 777862
- Date: Tue, 14 Mar 2017 02:16:44 +0000 (UTC)
commit 716e4600672c20b13f31be1a7c00683c903a573e
Author: Meg Ford <megford gnome org>
Date: Mon Mar 13 21:12:33 2017 -0500
Revert workaround for Bug 777862
src/listview.js | 32 --------------------------------
1 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/src/listview.js b/src/listview.js
index 6fc106d..1ca3c2a 100644
--- a/src/listview.js
+++ b/src/listview.js
@@ -74,15 +74,8 @@ const Listview = new Lang.Class({
},
monitorListview: function() {
- try {
this.dirMonitor = this._saveDir.monitor_directory(Gio.FileMonitorFlags.WATCH_MOVES, null);
this.dirMonitor.connect('changed', this._onDirChanged);
- } catch(e) {
- log(e);
- /* Workaround for Debian and Tails not recognizing Gio.FileMointor.WATCH_MOVES */
- this.dirMonitor = this._saveDir.monitor_directory(Gio.FileMonitorFlags.NONE, null);
- this.dirMonitor.connect('changed', this._onDirChangedDeb);
- }
},
enumerateDirectory: function() {
@@ -288,31 +281,6 @@ const Listview = new Lang.Class({
}
},
- _onDirChangedDeb: function(dirMonitor, file1, file2, eventType) {
- /* Workaround for Debian and Tails not recognizing Gio.FileMointor.WATCH_MOVES */
- if (eventType == Gio.FileMonitorEvent.DELETED && Gio.Application.get_default().saveDir.equal(file1))
{
- Gio.Application.get_default().ensure_directory();
- this._saveDir = Gio.Application.get_default().saveDir;
- }
- if ((eventType == Gio.FileMonitorEvent.DELETED) ||
- (eventType == Gio.FileMonitorEvent.CHANGES_DONE_HINT && MainWindow.recordPipeline ==
MainWindow.RecordPipelineStates.STOPPED)) {
- stopVal = EnumeratorState.ACTIVE;
- allFilesInfo.length = 0;
- fileInfo.length = 0;
- this.idx = 0;
- listType = ListType.REFRESH;
-
- if (currentlyEnumerating == CurrentlyEnumerating.FALSE) {
- currentlyEnumerating = CurrentlyEnumerating.TRUE;
- MainWindow.view.listBoxRefresh();
- }
- }
-
- else if (eventType == Gio.FileMonitorEvent.CREATED) {
- startRecording = true;
- }
- },
-
_getCapsForList: function(info) {
let discovererStreamInfo = null;
discovererStreamInfo = info.get_stream_info();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]