public DriveSource(Gnome.Vfs.Drive drive) { this.Name = drive.DisplayName; this.Drive = drive; if (drive.IsMounted) { this.Icon = PixbufUtils.LoadThemeIcon(drive.MountedVolume.Icon, 32); //this.Sensitive = drive.MountedVolume.IsMounted; } else { this.Icon = PixbufUtils.LoadThemeIcon(drive.Icon, 32); } }
public DriveSource(Gnome.Vfs.Drive drive) { this.Name = drive.DisplayName; this.Drive = drive; if (drive.IsMounted) { this.Icon = GtkUtil.TryLoadIcon(FSpot.Global.IconTheme, drive.MountedVolume.Icon, 32, (Gtk.IconLookupFlags) 0); //this.Sensitive = drive.MountedVolume.IsMounted; } else { this.Icon = GtkUtil.TryLoadIcon(FSpot.Global.IconTheme, drive.Icon, 32, (Gtk.IconLookupFlags) 0); } }