This repository has been archived on 2025-06-24. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
ObjGUI.old/OGWidget.m

35 lines
468 B
Objective-C

#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