summaryrefslogtreecommitdiff
path: root/new/control.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-08 00:43:35 -0400
committerPietro Gagliardi <[email protected]>2015-04-08 00:43:35 -0400
commit54e947eed3d75d0fbae533e7e4cce8fe84aaf77c (patch)
treed510e639dfdb00f7ae8d8ce9de90a9e54001f901 /new/control.c
parent521829a0a66f62e9ed4256440a1ed34565e4d51f (diff)
Started work on ensuring things get cleaned up. Added a destroy() method to uiControl and implemented most of the work for Windows.
Diffstat (limited to 'new/control.c')
-rw-r--r--new/control.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/new/control.c b/new/control.c
index c3ee677..ad03c49 100644
--- a/new/control.c
+++ b/new/control.c
@@ -1,6 +1,11 @@
// 7 april 2015
#include "uipriv.h"
+void uiControlDestroy(uiControl *c)
+{
+ (*(c->destroy))(c);
+}
+
uintptr_t uiControlHandle(uiControl *c)
{
return (*(c->handle))(c);