aboutsummaryrefslogtreecommitdiff
path: root/shared/tkwidgets.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-11-15 17:27:03 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-11-15 17:27:03 +0000
commit46c8c8f8d8448e72bf384c1de04dcfc7ab44f34a (patch)
tree824b7a6c60e92d2d5bcdf65b440dda08fe326887 /shared/tkwidgets.c
parent078d4d3de414a38fa2987a1aa1dc6c3ef3f11654 (diff)
- first working sketch of having a shared dylib for a libdir, I moved
query_options() to the dylib, and it works! :D (on Mac OS X, at least) - minor cleanups in text.c - first test of saving options to the file, it writes data, but there are bugs svn path=/trunk/externals/tkwidgets/; revision=9014
Diffstat (limited to 'shared/tkwidgets.c')
-rw-r--r--shared/tkwidgets.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/shared/tkwidgets.c b/shared/tkwidgets.c
index 6439842..587f2d8 100644
--- a/shared/tkwidgets.c
+++ b/shared/tkwidgets.c
@@ -32,6 +32,15 @@ t_symbol *canvas_getname(t_canvas *canvas)
return gensym(buf);
}
+
+void query_options(t_symbol *receive_name, char *widget_id, int argc, char** argv)
+{
+ int i;
+ for(i = 0; i < argc; i++)
+ sys_vgui("pd [concat %s query_callback %s [%s cget -%s] \\;]\n",
+ receive_name->s_name, argv[i], widget_id, argv[i]);
+}
+
/*
I think I'll probably have to follow Krzsztof and make structs to make this work
tkwidgets_setcallbackname(void *x, char *widget_name)