now populates menus
improved size to string formating for GB and TB git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14531 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -9,14 +9,18 @@
|
||||
|
||||
#include "PartitionMenuItem.h"
|
||||
|
||||
PartitionMenuItem::PartitionMenuItem(const char *label, BMessage *msg, partition_id id)
|
||||
PartitionMenuItem::PartitionMenuItem(const char *name, const char *label, const char *menuLabel,
|
||||
BMessage *msg, partition_id id)
|
||||
: BMenuItem(label, msg)
|
||||
{
|
||||
fID = id;
|
||||
fMenuLabel = strdup(menuLabel);
|
||||
fName = strdup(name);
|
||||
}
|
||||
|
||||
|
||||
PartitionMenuItem::~PartitionMenuItem()
|
||||
{
|
||||
free(fMenuLabel);
|
||||
free(fName);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user