[banshee/gtk3] AppleDeviceSource: Fix build error caused by mixing glib-sharp 2 and 3



commit 31e66e3c3faf795224154883c18033f7934729b6
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Mon Aug 1 21:21:49 2011 +0200

    AppleDeviceSource: Fix build error caused by mixing glib-sharp 2 and 3
    
    As libgpod-sharp brings in glib-sharp-2.0, this causes a compiler error
    when referencing anything from the GLib namespace.
    
    Be aware that this only fixes the compile-time problem, bad things are
    probably going to happen at runtime as long as libgpod-sharp is not
    ported to glib-sharp 3.0.

 .../Banshee.Dap.AppleDevice/AppleDeviceSource.cs   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs b/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs
index 561cc66..2934038 100644
--- a/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs
+++ b/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs
@@ -176,7 +176,7 @@ namespace Banshee.Dap.AppleDevice
 
                 try {
                     MediaDatabase = new GPod.ITDB (Device.Mountpoint);
-                } catch (GLib.GException e) {
+                } catch (Exception e) {
                     Log.Exception ("iPod database could not be loaded, creating a new one", e);
                     if (GPod.ITDB.InitIpod (Volume.MountPoint, null, Volume.Name)) {
                         // this may throw again. In the future we need to implement some kind of alert



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]