Commit 3a591645 authored by Stephan Sundermann's avatar Stephan Sundermann Committed by Andrés G. Aragoneses

osx: fix OsxBackend's HardwareManager build (bgo#749842)

Honor new IHardwareManager's DeviceChanged event,
introduced in[0] to fix the OSX build.

We take this opportunity to rename the methods to
align to the other managers (otherwise the method
DeviceChanged() that was already present, would
clash with this new event).

[0] https://git.gnome.org/browse/banshee/commit/?id=5a5cb82394519779c4ba641b7e993f4015714417Signed-off-by: 's avatarAndrés G. Aragoneses <knocte@gmail.com>
parent 2c72c26e
......@@ -44,6 +44,7 @@ namespace Banshee.OsxBackend
public sealed class HardwareManager : IHardwareManager, IService
{
public event DeviceAddedHandler DeviceAdded;
public event DeviceChangedHandler DeviceChanged;
public event DeviceRemovedHandler DeviceRemoved;
private List<IDevice> devices = new List<IDevice> ();
......@@ -54,13 +55,13 @@ namespace Banshee.OsxBackend
{
OsxService.GlobalInit ();
this.diskArbiter = new OsxDiskArbiter ();
diskArbiter.DeviceAppeared += DeviceAppeared;
diskArbiter.DeviceChanged += DeviceChanged;
diskArbiter.DeviceDisappeared += DeviceDisappeared;
diskArbiter.DeviceAppeared += OnDeviceAppeared;
diskArbiter.DeviceChanged += OnDeviceChanged;
diskArbiter.DeviceDisappeared += OnDeviceDisappeared;
diskArbiter.StartListening ();
}
private void DeviceAppeared (object o, DeviceArguments args)
private void OnDeviceAppeared (object o, DeviceArguments args)
{
Device device = new Device (args);
......@@ -96,7 +97,7 @@ namespace Banshee.OsxBackend
}
}
private void DeviceChanged (object o, DeviceArguments args)
private void OnDeviceChanged (object o, DeviceArguments args)
{
Device device = new Device (args);
......@@ -129,7 +130,7 @@ namespace Banshee.OsxBackend
}
}
private void DeviceDisappeared (object o, DeviceArguments args)
private void OnDeviceDisappeared (object o, DeviceArguments args)
{
Device device = new Device (args);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment