void IDisposable.Dispose() { UnsetIcon(); //UnsetTrackProgress(); service = null; awn = null; }
void IExtensionService.Initialize() { try { Log.DebugFormat("BansheeAwn. Starting {0}", Application.ActiveClient.ClientId); awn = DBus.Bus.Session.GetObject <IAvantWindowNavigator> ("com.google.code.Awn", new DBus.ObjectPath("/com/google/code/Awn")); // Dummy call to check that awn is really there awn.UnsetTaskIconByName("banshee-dummy"); service = ServiceManager.PlayerEngine; service.ConnectEvent(new PlayerEventHandler(this.OnEventChanged)); Log.Debug("BansheeAwn - Initialized"); } catch (Exception ex) { Log.Warning("BansheeAwn - Failed loading Awn Extension. ", ex); awn = null; } }
void IExtensionService.Initialize () { try { Log.DebugFormat ("BansheeAwn. Starting {0}", Application.ActiveClient.ClientId); awn = DBus.Bus.Session.GetObject<IAvantWindowNavigator> ("com.google.code.Awn", new DBus.ObjectPath ("/com/google/code/Awn")); // Dummy call to check that awn is really there awn.UnsetTaskIconByName ("banshee-dummy"); service = ServiceManager.PlayerEngine; service.ConnectEvent (new PlayerEventHandler (this.OnEventChanged)); Log.Debug ("BansheeAwn - Initialized"); } catch (Exception ex) { Log.Exception ("BansheeAwn - Failed loading Awn Extension. ", ex); awn = null; } }
void IExtensionService.Initialize() { try { Log.Debug("BansheeAwn. Starting..." + Banshee.ServiceStack.Application.ActiveClient.ClientId); awn = NDesk.DBus.Bus.Session.GetObject <IAvantWindowNavigator> ("com.google.code.Awn", new NDesk.DBus.ObjectPath("/com/google/code/Awn")); if (awn == null) { throw new NullReferenceException(); } service = ServiceManager.PlayerEngine; service.ConnectEvent(new PlayerEventHandler(this.OnEventChanged)); Log.Debug("BansheeAwn - Initialized"); } catch (Exception ex) { Log.Debug("BansheeAwn - Failed loading Awn Extension. " + ex.Message); } }
void IExtensionService.Initialize() { try { Log.Debug("BansheeAwn. Starting..." + Banshee.ServiceStack.Application.ActiveClient.ClientId); awn = NDesk.DBus.Bus.Session.GetObject<IAvantWindowNavigator> ("com.google.code.Awn", new NDesk.DBus.ObjectPath ("/com/google/code/Awn")); if (awn == null) throw new NullReferenceException(); service = ServiceManager.PlayerEngine; service.ConnectEvent(new PlayerEventHandler(this.OnEventChanged)); Log.Debug("BansheeAwn - Initialized"); } catch (Exception ex) { Log.Debug("BansheeAwn - Failed loading Awn Extension. " + ex.Message); } }
void IDisposable.Dispose() { UnsetIcon (); //UnsetTrackProgress(); service = null; awn = null; }