Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gabriela Bittencourt
purr-data
Commits
50ff0cfc
Commit
50ff0cfc
authored
Mar 29, 2021
by
Jonathan Wilkes
Browse files
Merge branch 'add-menunew'
parents
0b1c335e
29601bd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
pd/src/g_canvas.c
View file @
50ff0cfc
...
@@ -159,6 +159,13 @@ void glob_setfilename(void *dummy, t_symbol *filesym, t_symbol *dirsym)
...
@@ -159,6 +159,13 @@ void glob_setfilename(void *dummy, t_symbol *filesym, t_symbol *dirsym)
canvas_newdirectory
=
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 */
/* set the source for the next canvas, it will be an ab instance */
void
canvas_setabsource
(
t_ab_definition
*
abdef
)
void
canvas_setabsource
(
t_ab_definition
*
abdef
)
{
{
...
...
pd/src/m_glob.c
View file @
50ff0cfc
...
@@ -18,6 +18,7 @@ int pd_compatibilitylevel = PD_MINOR_VERSION;
...
@@ -18,6 +18,7 @@ int pd_compatibilitylevel = PD_MINOR_VERSION;
over. Some others are prototyped in m_imp.h as well. */
over. Some others are prototyped in m_imp.h as well. */
void
glob_setfilename
(
void
*
dummy
,
t_symbol
*
filesym
,
t_symbol
*
dirsym
);
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_verifyquit
(
void
*
dummy
,
t_floatarg
f
);
void
glob_dsp
(
void
*
dummy
,
t_symbol
*
s
,
int
argc
,
t_atom
*
argv
);
void
glob_dsp
(
void
*
dummy
,
t_symbol
*
s
,
int
argc
,
t_atom
*
argv
);
void
glob_meters
(
void
*
dummy
,
t_floatarg
f
);
void
glob_meters
(
void
*
dummy
,
t_floatarg
f
);
...
@@ -143,6 +144,8 @@ void glob_init(void)
...
@@ -143,6 +144,8 @@ void glob_init(void)
CLASS_DEFAULT
,
A_NULL
);
CLASS_DEFAULT
,
A_NULL
);
class_addmethod
(
glob_pdobject
,
(
t_method
)
glob_initfromgui
,
gensym
(
"init"
),
class_addmethod
(
glob_pdobject
,
(
t_method
)
glob_initfromgui
,
gensym
(
"init"
),
A_GIMME
,
0
);
A_GIMME
,
0
);
class_addmethod
(
glob_pdobject
,
(
t_method
)
glob_menunew
,
gensym
(
"menunew"
),
A_SYMBOL
,
A_SYMBOL
,
0
);
class_addmethod
(
glob_pdobject
,
class_addmethod
(
glob_pdobject
,
(
t_method
)
glob_forward_files_from_secondary_instance
,
(
t_method
)
glob_forward_files_from_secondary_instance
,
gensym
(
"forward_files_from_secondary_instance"
),
0
);
gensym
(
"forward_files_from_secondary_instance"
),
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment