Move -[show] and -[hide] from OGWidget to OGWindow.

This commit is contained in:
Jonathan Schleifer 2012-01-08 15:03:23 +01:00
parent aabc851a05
commit 16cb871e9d
6 changed files with 24 additions and 25 deletions

View file

@ -44,14 +44,4 @@ void og_destroy(GtkWidget *widget, OGWidget *object)
return self;
}
- (void)show
{
gtk_widget_show_all(widget);
}
- (void)hide
{
gtk_widget_hide(widget);
}
@end

View file

@ -100,6 +100,16 @@ willClose(GtkWidget *widget, GdkEvent *event, gpointer data)
gtk_container_add(GTK_CONTAINER(widget), child->widget);
}
- (void)show
{
gtk_widget_show_all(widget);
}
- (void)hide
{
gtk_widget_hide(widget);
}
- (BOOL)OG_willClose
{
OFAutoreleasePool *pool = [OFAutoreleasePool new];