Don't allow hiding windows as Cocoa can only hide the whole application.

This commit is contained in:
Jonathan Schleifer 2012-01-08 16:15:13 +01:00
parent 409a082498
commit 50f314d6b5
3 changed files with 0 additions and 12 deletions

View file

@ -105,11 +105,6 @@ willClose(GtkWidget *widget, GdkEvent *event, gpointer data)
gtk_widget_show_all(widget); gtk_widget_show_all(widget);
} }
- (void)hide
{
gtk_widget_hide(widget);
}
- (BOOL)OG_willClose - (BOOL)OG_willClose
{ {
OFAutoreleasePool *pool = [OFAutoreleasePool new]; OFAutoreleasePool *pool = [OFAutoreleasePool new];

View file

@ -42,5 +42,4 @@
+ window; + window;
- (void)addChild: (OGWidget*)widget; - (void)addChild: (OGWidget*)widget;
- (void)show; - (void)show;
- (void)hide;
@end @end

View file

@ -130,12 +130,6 @@ static int CALLBACK Resize_EnumChildren(HWND child, LPARAM lparam)
ShowWindow(widget, SW_SHOWNORMAL); ShowWindow(widget, SW_SHOWNORMAL);
} }
//---------------------------------------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------------------------------------
- (void)hide
{
if(widget != NULL)
ShowWindow(widget, SW_HIDE);
}
//----------------------------------------------------------------------------------------------------------------------------------
- (BOOL)OG_willClose - (BOOL)OG_willClose
{ {
OFAutoreleasePool *pool = [OFAutoreleasePool new]; OFAutoreleasePool *pool = [OFAutoreleasePool new];