Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sanket Bhukan
purr-data
Commits
f45f2444
Commit
f45f2444
authored
5 years ago
by
Albert Gräf
Browse files
Options
Downloads
Patches
Plain Diff
Backport 'add-to-path' from vanilla rev. c917dd19, to make Gem happy.
parent
beafe719
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pd/src/m_glob.c
+3
-0
3 additions, 0 deletions
pd/src/m_glob.c
pd/src/s_path.c
+16
-0
16 additions, 0 deletions
pd/src/s_path.c
with
19 additions
and
0 deletions
pd/src/m_glob.c
+
3
−
0
View file @
f45f2444
...
...
@@ -31,6 +31,7 @@ void glob_midi_dialog(t_pd *dummy, t_symbol *s, int argc, t_atom *argv);
void
glob_midi_setapi
(
t_pd
*
dummy
,
t_floatarg
f
);
void
glob_start_path_dialog
(
t_pd
*
dummy
,
t_floatarg
flongform
);
void
glob_path_dialog
(
t_pd
*
dummy
,
t_symbol
*
s
,
int
argc
,
t_atom
*
argv
);
void
glob_addtopath
(
t_pd
*
dummy
,
t_symbol
*
path
,
t_float
saveit
);
void
glob_start_startup_dialog
(
t_pd
*
dummy
,
t_floatarg
flongform
);
void
glob_startup_dialog
(
t_pd
*
dummy
,
t_symbol
*
s
,
int
argc
,
t_atom
*
argv
);
void
glob_ping
(
t_pd
*
dummy
);
...
...
@@ -168,6 +169,8 @@ void glob_init(void)
gensym
(
"start-path-dialog"
),
0
);
class_addmethod
(
glob_pdobject
,
(
t_method
)
glob_path_dialog
,
gensym
(
"path-dialog"
),
A_GIMME
,
0
);
class_addmethod
(
glob_pdobject
,
(
t_method
)
glob_addtopath
,
gensym
(
"add-to-path"
),
A_SYMBOL
,
A_DEFFLOAT
,
0
);
class_addmethod
(
glob_pdobject
,
(
t_method
)
glob_start_startup_dialog
,
gensym
(
"start-startup-dialog"
),
0
);
class_addmethod
(
glob_pdobject
,
(
t_method
)
glob_startup_dialog
,
...
...
This diff is collapsed.
Click to expand it.
pd/src/s_path.c
+
16
−
0
View file @
f45f2444
...
...
@@ -802,6 +802,22 @@ void glob_path_dialog(t_pd *dummy, t_symbol *s, int argc, t_atom *argv)
}
}
/* AG 20190801: add one item to search path (backported from
vanilla rev. c917dd19, to make GEM happy). */
void
glob_addtopath
(
t_pd
*
dummy
,
t_symbol
*
path
,
t_float
saveit
)
{
t_symbol
*
s
=
sys_decodedialog
(
path
);
if
(
*
s
->
s_name
)
{
sys_searchpath
=
namelist_append_files
(
sys_searchpath
,
s
->
s_name
);
if
(
saveit
)
{
/* AG: We just ignore this flag for now, later maybe save the
preferences here. GEM doesn't need this, and we don't use
Deken, so we can do without this. */
}
}
}
/* start a startup dialog window */
void
glob_start_startup_dialog
(
t_pd
*
dummy
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment