Make it possible to have implementations in different toolkits.
Also, make it possible to share the headers.
This commit is contained in:
parent
b5f40d159e
commit
73e7da5fb7
16 changed files with 3 additions and 3 deletions
35
OGWidget.m
35
OGWidget.m
|
@ -1,35 +0,0 @@
|
|||
#include "OGWidget.h"
|
||||
|
||||
void og_destroy(GtkWidget *widget, OGWidget *object)
|
||||
{
|
||||
[object release];
|
||||
}
|
||||
|
||||
@implementation OGWidget
|
||||
- init
|
||||
{
|
||||
self = [super init];
|
||||
|
||||
@try {
|
||||
if (isa == [OGWidget class])
|
||||
@throw [OFNotImplementedException
|
||||
exceptionWithClass: isa
|
||||
selector: @selector(init)];
|
||||
} @catch (id e) {
|
||||
[self release];
|
||||
@throw e;
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)show
|
||||
{
|
||||
gtk_widget_show_all(widget);
|
||||
}
|
||||
|
||||
- (void)hide
|
||||
{
|
||||
gtk_widget_hide(widget);
|
||||
}
|
||||
@end
|
Reference in a new issue