Decided not to turn new control scrolling parameters into a bitfield.
This commit is contained in:
parent
abf976ef44
commit
6d7140160b
|
@ -67,7 +67,6 @@ uiControl *uiDarwinNewControl(Class class, BOOL inScrollView, BOOL scrollViewHas
|
||||||
c->view = (NSView *) [[class alloc] initWithFrame:NSZeroRect];
|
c->view = (NSView *) [[class alloc] initWithFrame:NSZeroRect];
|
||||||
c->immediate = c->view;
|
c->immediate = c->view;
|
||||||
|
|
||||||
// TODO turn into bit field?
|
|
||||||
if (inScrollView) {
|
if (inScrollView) {
|
||||||
c->scrollView = [[NSScrollView alloc] initWithFrame:NSZeroRect];
|
c->scrollView = [[NSScrollView alloc] initWithFrame:NSZeroRect];
|
||||||
[c->scrollView setDocumentView:c->view];
|
[c->scrollView setDocumentView:c->view];
|
||||||
|
|
|
@ -72,7 +72,6 @@ uiControl *uiUnixNewControl(GType type, gboolean inScrolledWindow, gboolean scro
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
c->immediate = c->widget;
|
c->immediate = c->widget;
|
||||||
|
|
||||||
// TODO turn into bit field?
|
|
||||||
if (inScrolledWindow) {
|
if (inScrolledWindow) {
|
||||||
c->scrolledWindow = gtk_scrolled_window_new(NULL, NULL);
|
c->scrolledWindow = gtk_scrolled_window_new(NULL, NULL);
|
||||||
if (!GTK_IS_SCROLLABLE(c->widget))
|
if (!GTK_IS_SCROLLABLE(c->widget))
|
||||||
|
|
Loading…
Reference in New Issue