summaryrefslogtreecommitdiff
path: root/redo/tab_darwin.m
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-09 21:34:56 -0400
committerPietro Gagliardi <[email protected]>2014-08-09 21:34:56 -0400
commit62938635a2a6c5d614a890131483c57e1482d1fd (patch)
tree01fd66f1ff5e3506b7300663fb80690cc71b0c59 /redo/tab_darwin.m
parentea3dd093f7941cfc74af085fffc8e3f24b2ce0d5 (diff)
Started splitting apart xsizing_darwin.m and rearranging objc_darwin.h.
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;
+}