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
Jonathan Wilkes
purr-data
Commits
b4f76994
Commit
b4f76994
authored
Jun 19, 2020
by
Jonathan Wilkes
Browse files
fix border selection in gop, fix a typo
parent
4b7b73cd
Pipeline
#2024
passed with stage
in 330 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
externals/ggee/gui/image.c
View file @
b4f76994
...
...
@@ -235,8 +235,6 @@ static void image_select(t_gobj *z, t_glist *glist, int state)
{
//fprintf(stderr,"image_select %d\n", state);
t_image
*
x
=
(
t_image
*
)
z
;
gui_vmess
(
"gui_image_toggle_border"
,
"xxi"
,
glist_getcanvas
(
glist
),
x
,
state
);
if
(
state
)
{
if
(
x
->
x_glist
==
glist_getcanvas
(
glist
))
...
...
@@ -262,12 +260,14 @@ static void image_select(t_gobj *z, t_glist *glist, int state)
text_xpix
(
&
x
->
x_obj
,
glist
)
+
x
->
x_width
/
2
,
text_ypix
(
&
x
->
x_obj
,
glist
)
+
x
->
x_height
/
2
,
x
);
}
gui_vmess
(
"gui_image_toggle_border"
,
"xxi"
,
glist_getcanvas
(
glist
),
x
,
1
);
}
gui_vmess
(
"gui_gobj_select"
,
"xx"
,
glist_getcanvas
(
glist
),
x
);
//if (glist->gl_owner && !glist_istoplevel(glist))
//sys_vgui(".x%x.c addtag selected withtag %xS\n", glist_getcanvas(glist), x);
//sys_vgui(".x%x.c addtag selected withtag %xMT\n", glist_getcanvas(glist), x);
//sys_vgui(".x%x.c addtag selected withtag %xSEL\n", glist_getcanvas(glist), x);
gui_vmess
(
"gui_gobj_select"
,
"xx"
,
glist_getcanvas
(
glist
),
x
);
}
else
{
...
...
@@ -276,6 +276,8 @@ static void image_select(t_gobj *z, t_glist *glist, int state)
//if (glist->gl_owner && !glist_istoplevel(glist))
//sys_vgui(".x%lx.c dtag %xS selected\n", glist_getcanvas(glist), x);
//sys_vgui(".x%lx.c dtag %xMT selected\n", glist_getcanvas(glist), x);
gui_vmess
(
"gui_image_toggle_border"
,
"xxi"
,
glist_getcanvas
(
glist
),
x
,
0
);
gui_vmess
(
"gui_gobj_deselect"
,
"xx"
,
glist_getcanvas
(
glist
),
x
);
}
}
...
...
@@ -340,7 +342,7 @@ static int image_newclick(t_gobj *z, struct _glist *glist, int xpix, int ypix, i
if
(
doit
&&
x
->
x_click
)
outlet_bang
(
x
->
x_obj
.
ob_outlet
);
// LATER: figure out how to do click on and click off
// and provide a toggle button behavior instead
S
// and provide a toggle button behavior instead
/*{
x->x_clicked = 1;
outlet_float(x->x_obj.ob_outlet, x->x_clicked);
...
...
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