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
Aayush
purr-data
Commits
3e87b133
Commit
3e87b133
authored
Jan 29, 2019
by
Jonathan Wilkes
Browse files
Merge branch 'table-help'
parents
8e36bebc
ba031f8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/g_editor.c
View file @
3e87b133
...
...
@@ -2952,6 +2952,23 @@ static void canvas_doarrange(t_canvas *x, t_float which, t_gobj *oldy,
glob_preset_node_list_check_loc_and_update
();
}
static
char
*
canvas_gethelpname
(
t_object
*
ob
)
{
if
(
ob
->
te_binbuf
&&
binbuf_getnatom
(
ob
->
te_binbuf
)
&&
binbuf_getvec
(
ob
->
te_binbuf
)
->
a_type
==
A_SYMBOL
)
{
t_atom
*
a
=
binbuf_getvec
(
ob
->
te_binbuf
);
if
(
a
->
a_w
.
w_symbol
==
gensym
(
"draw"
))
return
"draw"
;
else
if
(
a
->
a_w
.
w_symbol
==
gensym
(
"table"
))
return
"table"
;
else
return
(
class_gethelpname
(
pd_class
(
&
ob
->
te_pd
)));
}
else
return
(
class_gethelpname
(
pd_class
(
&
ob
->
te_pd
)));
}
/* called from the gui when a popup menu comes back with "properties,"
"open," or "help." */
/* Ivica Ico Bukvic <ico@bukvic.net> 2010-11-17
...
...
@@ -3080,7 +3097,10 @@ void canvas_done_popup(t_canvas *x, t_float which, t_float xpos,
}
else
{
strncpy
(
namebuf
,
class_gethelpname
(
pd_class
(
&
y
->
g_pd
)),
char
*
obname
=
(
pd_class
(
&
y
->
g_pd
)
==
canvas_class
)
?
canvas_gethelpname
((
t_object
*
)
y
)
:
class_gethelpname
(
pd_class
(
&
y
->
g_pd
));
strncpy
(
namebuf
,
obname
,
FILENAME_MAX
-
1
);
namebuf
[
FILENAME_MAX
-
1
]
=
0
;
dir
=
class_gethelpdir
(
pd_class
(
&
y
->
g_pd
));
...
...
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