[PD-cvs] externals/bbogart/entry entry.c,1.20,1.21
Hans-Christoph Steiner
eighthave at users.sourceforge.net
Mon Oct 29 18:44:25 CET 2007
Update of /cvsroot/pure-data/externals/bbogart/entry
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3012
Modified Files:
entry.c
Log Message:
added Pd's key bindings to each text box; fixed bug #1818219 so the namespace prefix now gets saved as part of the object's classname
Index: entry.c
===================================================================
RCS file: /cvsroot/pure-data/externals/bbogart/entry/entry.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** entry.c 29 Oct 2007 03:23:07 -0000 1.20
--- entry.c 29 Oct 2007 17:44:23 -0000 1.21
***************
*** 266,273 ****
sys_vgui("bind .x%x.c.s%x.text <KeyRelease> {+pd %s keyup %%N \\;} \n",
canvas, x, x->x_receive_name->s_name);
! DEBUG(post("bind .x%x.c.s%x.text <Leave> {focus [winfo parent .x%x.c.s%x]} \n",
! canvas, x, canvas, x););
! sys_vgui("bind .x%x.c.s%x.text <Leave> {focus [winfo parent .x%x.c.s%x]} \n",
! canvas, x, canvas, x);
}
--- 266,275 ----
sys_vgui("bind .x%x.c.s%x.text <KeyRelease> {+pd %s keyup %%N \\;} \n",
canvas, x, x->x_receive_name->s_name);
! DEBUG(post("bind .x%x.c.s%x.text <Leave> {focus [winfo parent .x%x.c.s%x]} \n",
! canvas, x, canvas, x););
! sys_vgui("bind .x%x.c.s%x.text <Leave> {focus [winfo parent .x%x.c.s%x]} \n",
! canvas, x, canvas, x);
! DEBUG(post("pdtk_standardkeybindings .x%x.c.s%x.text \n", canvas, x););
! sys_vgui("pdtk_standardkeybindings .x%x.c.s%x.text \n", canvas, x);
}
***************
*** 541,549 ****
{
t_entry *x = (t_entry *)z;
!
binbuf_addv(b, "ssiisiiss", gensym("#X"),gensym("obj"),
x->x_obj.te_xpix, x->x_obj.te_ypix,
! gensym("entry"), x->x_width, x->x_height,
! x->x_bgcolour, x->x_fgcolour);
binbuf_addv(b, ";");
}
--- 543,551 ----
{
t_entry *x = (t_entry *)z;
!
binbuf_addv(b, "ssiisiiss", gensym("#X"),gensym("obj"),
x->x_obj.te_xpix, x->x_obj.te_ypix,
! atom_getsymbol(binbuf_getvec(x->x_obj.te_binbuf)),
! x->x_width, x->x_height, x->x_bgcolour, x->x_fgcolour);
binbuf_addv(b, ";");
}
More information about the Pd-cvs
mailing list