aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-01-26 23:28:03 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-01-26 23:28:03 +0000
commitc2a14a3fa6771096364fd609b42bd02c47a4b314 (patch)
tree54d8d4cebbc87ea8e6b2999b2103bcc035a70484
parentd981911d468ff2e1ca97b86a5af8ef66b3c2a2ef (diff)
updated to use 0.43 'pdsend' command
svn path=/trunk/externals/tkwidgets/; revision=13103
-rw-r--r--text.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/text.c b/text.c
index c30f4ce..92a0ef4 100644
--- a/text.c
+++ b/text.c
@@ -189,7 +189,7 @@ static void create_widget(t_textwidget *x)
tkwidgets_bind_key_events(x->canvas_id, x->widget_id);
tkwidgets_bind_mouse_events(x->canvas_id, x->widget_id);
/* bind to KeyRelease events to send out right outlet one key at a time */
- sys_vgui("bind %s <KeyRelease> {+pd %s keyup %%N \\;} \n",
+ sys_vgui("bind %s <KeyRelease> {+pdsend %s keyup %%N \\;} \n",
x->widget_id->s_name, x->receive_name->s_name);
/* override the standard Pd bindings for these since they cause trouble */
#ifdef __APPLE__
@@ -316,11 +316,11 @@ static void textwidget_activate(t_gobj *z, t_glist *glist, int state)
TKW_HANDLE_WIDTH, TKW_HANDLE_HEIGHT,
x->handle_id->s_name, x->all_tag->s_name);
sys_vgui("raise %s\n", x->handle_id->s_name);
- sys_vgui("bind %s <Button> {pd [concat %s resize_click 1 \\;]}\n",
+ sys_vgui("bind %s <Button> {pdsend [concat %s resize_click 1 \\;]}\n",
x->handle_id->s_name, x->receive_name->s_name);
- sys_vgui("bind %s <ButtonRelease> {pd [concat %s resize_click 0 \\;]}\n",
+ sys_vgui("bind %s <ButtonRelease> {pdsend [concat %s resize_click 0 \\;]}\n",
x->handle_id->s_name, x->receive_name->s_name);
- sys_vgui("bind %s <Motion> {pd [concat %s resize_motion %%x %%y \\;]}\n",
+ sys_vgui("bind %s <Motion> {pdsend [concat %s resize_motion %%x %%y \\;]}\n",
x->handle_id->s_name, x->receive_name->s_name);
}
}
@@ -399,7 +399,7 @@ static void textwidget_set_option(t_textwidget *x, t_symbol *s, int argc, t_atom
static void textwidget_bang_output(t_textwidget* x)
{
/* With "," and ";" escaping thanks to JMZ */
- sys_vgui("pd [concat %s output [string map {\",\" \"\\\\,\" \";\" \"\\\\;\"} \
+ sys_vgui("pdsend [concat %s output [string map {\",\" \"\\\\,\" \";\" \"\\\\;\"} \
[%s get 0.0 end]] \\;]\n",
x->receive_name->s_name, x->widget_id->s_name);
}