Artifact 33691ef540ccf850fc8daf4f1b13ed6a4af07ff4627b2089ca59a5d933cfd8c7:
- File OGWidget.m — part of check-in [60818c0951] at 2011-12-27 21:09:33 on branch trunk — Initial import. (user: js, size: 468) [annotate] [blame] [check-ins using]
- File
gtk/OGWidget.m
— part of check-in
[31af425497]
at
2011-12-27 22:38:07
on branch trunk
— Make it possible to have implementations in different toolkits.
Also, make it possible to share the headers. (user: js, size: 468) [annotate] [blame] [check-ins using]
#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