summaryrefslogtreecommitdiff
path: root/new/stack.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-09 20:04:18 -0400
committerPietro Gagliardi <[email protected]>2015-04-09 20:04:18 -0400
commita7281f903407b1289d7aa3078f2e9bfb22f7724b (patch)
treeaabeb6318165299261e8eb2b434debdc29c8471c /new/stack.c
parent10ea719dc8b9fa5fedc4c94c77775de3e64aed75 (diff)
Added uiStackPadded().
Diffstat (limited to 'new/stack.c')
-rw-r--r--new/stack.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/new/stack.c b/new/stack.c
index 338f18a..3a87257 100644
--- a/new/stack.c
+++ b/new/stack.c
@@ -255,7 +255,12 @@ void uiStackAdd(uiControl *st, uiControl *c, int stretchy)
updateParent(s->parent);
}
-// TODO get padded
+int uiStackPadded(uiControl *c)
+{
+ stack *s = (stack *) (c->data);
+
+ return s->padded;
+}
void uiStackSetPadded(uiControl *c, int padded)
{