summaryrefslogtreecommitdiff
path: root/redo/tab_darwin.m
diff options
context:
space:
mode:
Diffstat (limited to 'redo/tab_darwin.m')
-rw-r--r--redo/tab_darwin.m13
1 files changed, 13 insertions, 0 deletions
diff --git a/redo/tab_darwin.m b/redo/tab_darwin.m
index 7fef7a0..1c2920a 100644
--- a/redo/tab_darwin.m
+++ b/redo/tab_darwin.m
@@ -25,3 +25,16 @@ void tabAppend(id t, char *name, id view)
[i setView:toNSView(view)];
[toNSTabView(t) addTabViewItem:i];
}
+
+struct xsize tabPreferredSize(id control)
+{
+ NSTabView *tv;
+ NSSize s;
+ struct xsize t;
+
+ tv = toNSTabView(control);
+ s = [tv minimumSize];
+ t.width = (intptr_t) s.width;
+ t.height = (intptr_t) s.height;
+ return t;
+}