Commit 29601bd5 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

add menunew method

parent 0b1c335e
......@@ -159,6 +159,13 @@ void glob_setfilename(void *dummy, t_symbol *filesym, t_symbol *dirsym)
canvas_newdirectory = dirsym;
void glob_menunew(void *dummy, t_symbol *filesym, t_symbol *dirsym)
glob_setfilename(dummy, filesym, dirsym);
canvas_new(0, 0, 0, 0);
canvas_pop((t_canvas *)s__X.s_thing, 1);
/* set the source for the next canvas, it will be an ab instance */
void canvas_setabsource(t_ab_definition *abdef)
......@@ -18,6 +18,7 @@ int pd_compatibilitylevel = PD_MINOR_VERSION;
over. Some others are prototyped in m_imp.h as well. */
void glob_setfilename(void *dummy, t_symbol *filesym, t_symbol *dirsym);
void glob_menunew(void *dummy, t_symbol *name, t_symbol *dir);
void glob_verifyquit(void *dummy, t_floatarg f);
void glob_dsp(void *dummy, t_symbol *s, int argc, t_atom *argv);
void glob_meters(void *dummy, t_floatarg f);
......@@ -143,6 +144,8 @@ void glob_init(void)
class_addmethod(glob_pdobject, (t_method)glob_initfromgui, gensym("init"),
A_GIMME, 0);
class_addmethod(glob_pdobject, (t_method)glob_menunew, gensym("menunew"),
gensym("forward_files_from_secondary_instance"), 0);
Supports Markdown
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