aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-08-23 12:24:16 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-08-23 12:24:16 +0000
commitd999c1701908e241dbaa9d335680f348410144e5 (patch)
tree1f725d95185a25621f48ab4fc8dc8a0e4d3e4d67
parent3368192bd4251886e617a0471efd1561c56f7d91 (diff)
escape "," and ";" before sending it to pd (so they won't be expanded to separate lists)
svn path=/trunk/externals/bbogart/; revision=3453
-rw-r--r--entry/entry.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/entry/entry.c b/entry/entry.c
index 7dc1e5a..dd1066b 100644
--- a/entry/entry.c
+++ b/entry/entry.c
@@ -320,7 +320,8 @@ static void entry_output(t_entry* x, t_symbol *s, int argc, t_atom *argv)
/* Pass the contents of the text widget onto the entry_output fuction above */
static void entry_bang_output(t_entry* x)
{
- sys_vgui("pd [concat entry%p output [.x%x.c.s%x get 0.0 end] \\;]\n", x, x->x_glist, x);
+ sys_vgui("pd [concat entry%p output [string map {\",\" \"\\\\,\" \";\" \"\\\\;} [.x%x.c.s%x get 0.0 end]]\" \\;]\n", x, x->x_glist, x);
+
sys_vgui("bind .x%x.c.s%x <Leave> {focus [winfo parent .x%x.c.s%x]} \n", x->x_glist, x, x->x_glist, x);
}
@@ -431,7 +432,7 @@ void entry_setup(void) {
class_setsavefn(entry_class,&entry_save);
#endif
- post("Text v0.1 Ben Bogart.\nCVS: $Revision: 1.3 $ $Date: 2004-11-07 17:53:35 $");
+ post("Text v0.1 Ben Bogart.\nCVS: $Revision: 1.4 $ $Date: 2005-08-23 12:24:16 $");
}