Commits

Ikey Doherty committed e486b0b

Add placeholder for disk type

Comments (0)

Files changed (2)

src/core/disk/disks.vala

    // Is this an SSD device ?
    public bool ssd { protected set; public get; }
 
+   // Displayable "type" of disk
+   public string disk_type { protected set; public get; } 
+
    public Disk (Ped.Disk parent) {
 	this.path = parent.dev.path;
 
 		} catch (GLib.Error e) { // doesn't matter
 		}
 	}
+	this.disk_type = parent.dev.type.to_string (); // not working yet.
    }
 } // End Disk definition
 

src/widgets/diskchooser/diskchooser.vala

 
 	this.pack_start (image, false, false, 10);
 	//var disk_info = "<big>%s (%s)</big>\n<small>%s</small>".printf(disk.model, misc.format_size(disk.size), disk.type);
-	var disk_info = "<big>%s (%s)</big>".printf (disk.model, format_size (disk.size) );
+	var disk_info = "<big>%s (%s)</big>\n<small>%s</small>".printf (disk.model, format_size (disk.size), disk.disk_type );
 
 	var disp_label = "<span color=\"%s\">%s</span>".printf(fgColor, disk_info);
 	// Make sure user knows its SSD