Commit 7476eae5 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

Merge branch 'vanilla-port'

parents f92c6c74 1e59369d
......@@ -5,7 +5,7 @@ pdsend \- send messages to pd on this or a remote machine
.B pdsend
\fIport-number\fR [\fIhostname\fR] [udp|tcp]
.SH DESCRIPTION
Pdsend sends messages to pd(1), via a socket conection, from pdsend's
Pdsend sends messages to pd(1), via a socket connection, from pdsend's
standard input. This input can be any stream of Pd messages separated by
semicolons. This is probably the easiest way to control pd from another
application. The protocol used is easy to implement and is called FUDI.
......
......@@ -892,7 +892,12 @@ static void canvas_savetofile(t_canvas *x, t_symbol *filename, t_symbol *dir,
static void canvas_menusaveas(t_canvas *x, t_floatarg fdestroy)
{
t_canvas *x2 = canvas_getrootfor(x);
gui_vmess("gui_canvas_saveas", "xssi", x2, x2->gl_name->s_name, canvas_getdir(x2)->s_name, fdestroy != 0);
gui_vmess("gui_canvas_saveas", "xssi",
x2,
(strncmp(x2->gl_name->s_name, "Untitled", 8) ?
x2->gl_name->s_name : "title"),
canvas_getdir(x2)->s_name,
fdestroy != 0);
}
static void canvas_menusave(t_canvas *x, t_floatarg fdestroy)
......
......@@ -1103,17 +1103,20 @@ static void scalar_vis(t_gobj *z, t_glist *owner, int vis)
static void scalar_doredraw(t_gobj *client, t_glist *glist)
{
scalar_vis(client, glist, 0);
scalar_vis(client, glist, 1);
if (glist_isselected(glist_getcanvas(glist), (t_gobj *)glist))
if (glist_isvisible(glist))
{
//fprintf(stderr,"yes\n");
/* I still don't understand what this does... should probably
do some scalar gop tests to see if it is actually needed... */
//sys_vgui("pdtk_select_all_gop_widgets .x%lx %lx %d\n",
// glist_getcanvas(glist), glist, 1);
scalar_vis(client, glist, 0);
scalar_vis(client, glist, 1);
if (glist_isselected(glist_getcanvas(glist), (t_gobj *)glist))
{
//fprintf(stderr,"yes\n");
/* I still don't understand what this does... should probably
do some scalar gop tests to see if it is actually needed... */
//sys_vgui("pdtk_select_all_gop_widgets .x%lx %lx %d\n",
// glist_getcanvas(glist), glist, 1);
}
canvas_getscroll(glist_getcanvas(glist));
}
canvas_getscroll(glist_getcanvas(glist));
}
void scalar_redraw(t_scalar *x, t_glist *glist)
......
......@@ -1099,7 +1099,7 @@ ex_sum(t_expr *e, long int argc, struct ex_ex *argv, struct ex_ex *optr)
/*
* ex_Sum -- calculate the sum of table with the given boundries
* ex_Sum -- calculate the sum of table with the given boundaries
*/
void
......@@ -1132,7 +1132,7 @@ ex_Sum(t_expr *e, long int argc, struct ex_ex *argv, struct ex_ex *optr)
n1 = argv->ex_flt;
break;
default:
post("expr: Sum: boundries have to be fix values\n");
post("expr: Sum: boundaries have to be fix values\n");
optr->ex_type = ET_INT;
optr->ex_int = 0;
return;
......@@ -1148,7 +1148,7 @@ ex_Sum(t_expr *e, long int argc, struct ex_ex *argv, struct ex_ex *optr)
n2 = argv->ex_flt;
break;
default:
post("expr: Sum: boundries have to be fix values\n");
post("expr: Sum: boundaries have to be fix values\n");
optr->ex_type = ET_INT;
optr->ex_int = 0;
return;
......@@ -1201,7 +1201,7 @@ ex_avg(t_expr *e, long int argc, struct ex_ex *argv, struct ex_ex *optr)
/*
* ex_Avg -- calculate the avarage of table with the given boundries
* ex_Avg -- calculate the avarage of table with the given boundaries
*/
void
......@@ -1233,7 +1233,7 @@ ex_Avg(t_expr *e, long int argc, struct ex_ex *argv, struct ex_ex *optr)
if (argv->ex_type != ET_INT || argv[1].ex_type != ET_INT)
{
post("expr: Avg: boundries have to be fix values\n");
post("expr: Avg: boundaries have to be fix values\n");
optr->ex_type = ET_INT;
optr->ex_int = 0;
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment