Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Aayush
purr-data
Commits
f338768b
Commit
f338768b
authored
Oct 04, 2012
by
Ivica Ico Bukvic
Browse files
fixed bug where contents were not properly reselected after being changed
parent
41d2bc7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/g_scalar.c
View file @
f338768b
...
...
@@ -374,6 +374,10 @@ 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
))
{
//fprintf(stderr,"yes\n");
sys_vgui
(
"pdtk_select_all_gop_widgets .x%lx %lx %d
\n
"
,
glist_getcanvas
(
glist
),
glist
,
1
);
}
}
void
scalar_redraw
(
t_scalar
*
x
,
t_glist
*
glist
)
...
...
@@ -416,6 +420,7 @@ int scalar_doclick(t_word *data, t_template *template, t_scalar *sc,
static
int
scalar_click
(
t_gobj
*
z
,
struct
_glist
*
owner
,
int
xpix
,
int
ypix
,
int
shift
,
int
alt
,
int
dbl
,
int
doit
)
{
//fprintf(stderr,"scalar_click\n");
t_scalar
*
x
=
(
t_scalar
*
)
z
;
t_template
*
template
=
template_findbyname
(
x
->
sc_template
);
return
(
scalar_doclick
(
x
->
sc_vec
,
template
,
x
,
0
,
...
...
Write
Preview
Supports
Markdown
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