~ubuntu-branches/ubuntu/trusty/banshee/trusty-updates

« back to all changes in this revision

Viewing changes to src/Backends/Banshee.Gio/Banshee.Hardware.Gio/LowLevel/RawVolume.cs

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2013-12-22 04:11:14 UTC
  • mfrom: (1.2.25) (150.1.1 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20131222041114-w19a3qe6h9ld7329
* [e46e107] Merge from Debian Experimental, remaining changes:
  - Enable and recommend SoundMenu and Disable NotificationArea by default
  - Disable boo and karma extensions
  - Move desktop file for Meego UI to /usr/share/une/applications
  - Change the url for the Amazon store redirector
  - [9b356d6] Add workaround for set_Height exception.
  - [ccbcbbd] Make Banshee translatable in Launchpad
  - [2094ee5] Bump libgpod build-dep version to 0.8.2-7~
  - [03c8cad] Set debian-branch to ubuntu/raring

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        const string FileSystemSize = "filesystem::size";
43
43
        const string FileSystemReadOnly = "filesystem::readonly";
44
44
 
45
 
        public GLib.Volume Volume {
 
45
        public GLib.IVolume Volume {
46
46
            get; set;
47
47
        }
48
48
 
147
147
        }
148
148
 
149
149
 
150
 
        public RawVolume (GLib.Volume volume, Manager manager, GioVolumeMetadataSource gioMetadata, UdevMetadataSource udevMetadata)
 
150
        public RawVolume (GLib.IVolume volume, Manager manager, GioVolumeMetadataSource gioMetadata, UdevMetadataSource udevMetadata)
151
151
            : base (manager, gioMetadata, udevMetadata)
152
152
        {
153
153
            Volume = volume;
239
239
                if (Volume.Drive == null) {
240
240
                    return null;
241
241
                }
 
242
 
 
243
                var device = Manager.GudevDeviceFromGioDrive (Volume.Drive);
 
244
                if (device == null) {
 
245
                    return null;
 
246
                }
242
247
                return new RawBlockDevice (Volume.Drive,
243
248
                                           Manager,
244
 
                                           new GioDriveMetadetaSource (Volume.Drive),
245
 
                                           new UdevMetadataSource (Manager.GudevDeviceFromGioDrive (Volume.Drive)));
 
249
                                           new GioDriveMetadataSource (Volume.Drive),
 
250
                                           new UdevMetadataSource (device));
246
251
            }
247
252
        }
248
253