[banshee] LibraryWatcher: renamed method
- From: AndrÃs Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] LibraryWatcher: renamed method
- Date: Tue, 21 Feb 2012 01:40:22 +0000 (UTC)
commit b1d59cb70ca22a8bff3e95fcce1b6d41c1c80973
Author: Andres G. Aragoneses <knocte gmail com>
Date: Tue Feb 21 01:09:22 2012 +0000
LibraryWatcher: renamed method
The method name OnChanged could be confused to be thought of handling
only events of type WatcherChangeTypes.Changed, so we rename to
OnModified as an initial improvement before upcoming changes here.
.../Banshee.LibraryWatcher/SourceWatcher.cs | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/Extensions/Banshee.LibraryWatcher/Banshee.LibraryWatcher/SourceWatcher.cs b/src/Extensions/Banshee.LibraryWatcher/Banshee.LibraryWatcher/SourceWatcher.cs
index d827252..859e05f 100644
--- a/src/Extensions/Banshee.LibraryWatcher/Banshee.LibraryWatcher/SourceWatcher.cs
+++ b/src/Extensions/Banshee.LibraryWatcher/Banshee.LibraryWatcher/SourceWatcher.cs
@@ -99,10 +99,10 @@ namespace Banshee.LibraryWatcher
watcher = new FileSystemWatcher (path);
watcher.IncludeSubdirectories = true;
- watcher.Changed += OnChanged;
- watcher.Created += OnChanged;
- watcher.Deleted += OnChanged;
- watcher.Renamed += OnChanged;
+ watcher.Changed += OnModified;
+ watcher.Created += OnModified;
+ watcher.Deleted += OnModified;
+ watcher.Renamed += OnModified;
active = true;
watch_thread = new Thread (new ThreadStart (Watch));
@@ -117,10 +117,10 @@ namespace Banshee.LibraryWatcher
{
if (!disposed) {
active = false;
- watcher.Changed -= OnChanged;
- watcher.Created -= OnChanged;
- watcher.Deleted -= OnChanged;
- watcher.Renamed -= OnChanged;
+ watcher.Changed -= OnModified;
+ watcher.Created -= OnModified;
+ watcher.Deleted -= OnModified;
+ watcher.Renamed -= OnModified;
lock (queue) {
queue.Clear ();
@@ -135,7 +135,7 @@ namespace Banshee.LibraryWatcher
#region Private Methods
- private void OnChanged (object source, FileSystemEventArgs args)
+ private void OnModified (object source, FileSystemEventArgs args)
{
var item = new QueueItem {
When = DateTime.Now,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]