Beispiel #1
0
        public int Compare(Gnome.Vfs.Drive b)
        {
            int raw_ret = gnome_vfs_drive_compare(Handle, b == null ? IntPtr.Zero : b.Handle);
            int ret     = raw_ret;

            return(ret);
        }
Beispiel #2
0
        public Gnome.Vfs.Drive GetDriveById(ulong id)
        {
            IntPtr raw_ret = gnome_vfs_volume_monitor_get_drive_by_id(Handle, new UIntPtr(id));

            Gnome.Vfs.Drive ret = GLib.Object.GetObject(raw_ret) as Gnome.Vfs.Drive;
            return(ret);
        }
Beispiel #3
0
 protected virtual void OnDriveConnected(Gnome.Vfs.Drive drive)
 {
     GLib.Value      ret             = GLib.Value.Empty;
     GLib.ValueArray inst_and_params = new GLib.ValueArray(2);
     GLib.Value[]    vals            = new GLib.Value [2];
     vals [0] = new GLib.Value(this);
     inst_and_params.Append(vals [0]);
     vals [1] = new GLib.Value(drive);
     inst_and_params.Append(vals [1]);
     g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret);
     foreach (GLib.Value v in vals)
     {
         v.Dispose();
     }
 }
		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);
			}
		}