Initial OGComboBox implementation.
Only support for text so far.
This commit is contained in:
parent
73e7da5fb7
commit
45380da631
5 changed files with 148 additions and 1 deletions
31
gtk/OGComboBoxItem.m
Normal file
31
gtk/OGComboBoxItem.m
Normal file
|
@ -0,0 +1,31 @@
|
|||
#import "OGComboBoxItem.h"
|
||||
|
||||
@implementation OGComboBoxItem
|
||||
@synthesize label;
|
||||
|
||||
+ comboBoxItemWithLabel: (OFString*)label
|
||||
{
|
||||
return [[[self alloc] initWithLabel: label] autorelease];
|
||||
}
|
||||
|
||||
- initWithLabel: (OFString*)label_
|
||||
{
|
||||
self = [super init];
|
||||
|
||||
@try {
|
||||
label = [label_ copy];
|
||||
} @catch (id e) {
|
||||
[self release];
|
||||
@throw e;
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
[label release];
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
@end
|
Reference in a new issue