ObjGUI  Check-in [237f51a5a8]

Overview
Comment:Don't allow hiding windows as Cocoa can only hide the whole application.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 237f51a5a800ef2dc94cba902b14fd1817eab3d004087046de41b1fbc9c79924
User & Date: js on 2012-01-08 15:15:13
Other Links: manifest | tags
Context
2012-03-21
11:05
Update URL in copyright. Leaf check-in: 01d7fc9594 user: js tags: trunk
2012-01-08
15:15
Don't allow hiding windows as Cocoa can only hide the whole application. check-in: 237f51a5a8 user: js tags: trunk
14:06
Move declaration of og_application_delegate() to the header. check-in: 8df3bb5437 user: js tags: trunk
Changes

Modified gtk/OGWindow.m from [be61752dfa] to [fcc62e969f].

101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
}

- (void)show
{
	gtk_widget_show_all(widget);
}

- (void)hide
{
	gtk_widget_hide(widget);
}

- (BOOL)OG_willClose
{
	OFAutoreleasePool *pool = [OFAutoreleasePool new];

	if ([delegate respondsToSelector: @selector(windowWillClose:)])
		return [delegate windowWillClose: self];








<
<
<
<
<







101
102
103
104
105
106
107





108
109
110
111
112
113
114
}

- (void)show
{
	gtk_widget_show_all(widget);
}






- (BOOL)OG_willClose
{
	OFAutoreleasePool *pool = [OFAutoreleasePool new];

	if ([delegate respondsToSelector: @selector(windowWillClose:)])
		return [delegate windowWillClose: self];

Modified headers/OGWindow.h from [26db441951] to [9886b9cb47].

38
39
40
41
42
43
44
45
46
@property (copy) OFString *title;
@property (assign) of_point_t position;
@property (assign) of_dimension_t dimension;

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







<

38
39
40
41
42
43
44

45
@property (copy) OFString *title;
@property (assign) of_point_t position;
@property (assign) of_dimension_t dimension;

+ window;
- (void)addChild: (OGWidget*)widget;
- (void)show;

@end

Modified win32/OGWindow.m from [9c501d35d1] to [cc735c3563].

125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
}
//----------------------------------------------------------------------------------------------------------------------------------
- (void)show
{
  if(widget != NULL)
    ShowWindow(widget, SW_SHOWNORMAL);
}
//----------------------------------------------------------------------------------------------------------------------------------
- (void)hide
{
  if(widget != NULL)
    ShowWindow(widget, SW_HIDE);
}
//----------------------------------------------------------------------------------------------------------------------------------
- (BOOL)OG_willClose
{
  OFAutoreleasePool *pool = [OFAutoreleasePool new];

  if ([delegate respondsToSelector: @selector(windowWillClose:)])
    return [delegate windowWillClose: self];







<
<
<
<
<
<







125
126
127
128
129
130
131






132
133
134
135
136
137
138
}
//----------------------------------------------------------------------------------------------------------------------------------
- (void)show
{
  if(widget != NULL)
    ShowWindow(widget, SW_SHOWNORMAL);
}






//----------------------------------------------------------------------------------------------------------------------------------
- (BOOL)OG_willClose
{
  OFAutoreleasePool *pool = [OFAutoreleasePool new];

  if ([delegate respondsToSelector: @selector(windowWillClose:)])
    return [delegate windowWillClose: self];