Commit 755a8afc authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

fixed problem where using find/finderror would open the new window (where...

fixed problem where using find/finderror would open the new window (where offending object is located) but would not properly select the said object
parent 69ddb656
......@@ -240,7 +240,7 @@ void bng_draw_select(t_bng* x, t_glist* glist)
t_scalehandle *sh = (t_scalehandle *)(x->x_gui.x_handle);
t_scalehandle *lh = (t_scalehandle *)(x->x_gui.x_lhandle);
if (glist_isvisible(canvas)) {
//if (glist_isvisible(canvas)) {
if(x->x_gui.x_fsf.x_selected)
{
......@@ -305,7 +305,7 @@ void bng_draw_select(t_bng* x, t_glist* glist)
sys_vgui("destroy %s\n", lh->h_pathname);
x->x_gui.label_vis = 0;
}
}
//}
}
static void bng__clickhook(t_scalehandle *sh, t_floatarg f, t_floatarg xxx, t_floatarg yyy)
......
......@@ -3091,7 +3091,7 @@ void canvas_doconnect(t_canvas *x, int xpos, int ypos, int which, int doit)
if (pd_class(&y1->g_pd) == preset_node_class) {
if (pd_class(&y2->g_pd) == message_class) {
error("preset_node does not work with messages.\n");
error("preset_node does not work with messages.");
return;
}
}
......@@ -4707,7 +4707,7 @@ void canvas_connect(t_canvas *x, t_floatarg fwhoout, t_floatarg foutno,
/* now check for illegal connections between preset_node object and other non-supported objects */
if (pd_class(&src->g_pd) == preset_node_class) {
if (pd_class(&sink->g_pd) == message_class) {
error("preset_node does not work with messages.\n");
error("preset_node does not work with messages.");
goto bad;
}
}
......
......@@ -1123,7 +1123,7 @@ static void graph_displace_withtag(t_gobj *z, t_glist *glist, int dx, int dy)
static void graph_select(t_gobj *z, t_glist *glist, int state)
{
//fprintf(stderr,"graph_select .x%lx %d...\n", (t_int)z, state);
//fprintf(stderr,"graph_select .x%lx .x%lx %d...\n", (t_int)z, (t_int)glist, state);
t_glist *x = (t_glist *)z;
if (!x->gl_isgraph)
text_widgetbehavior.w_selectfn(z, glist, state);
......
......@@ -271,7 +271,7 @@ void hradio_draw_select(t_hradio* x, t_glist* glist)
t_scalehandle *lh = (t_scalehandle *)(x->x_gui.x_lhandle);
int n=x->x_number, i;
if (glist_isvisible(canvas)) {
//if (glist_isvisible(canvas)) {
if(x->x_gui.x_fsf.x_selected)
{
......@@ -341,7 +341,7 @@ void hradio_draw_select(t_hradio* x, t_glist* glist)
sys_vgui("destroy %s\n", lh->h_pathname);
x->x_gui.label_vis = 0;
}
}
//}
}
static void hradio__clickhook(t_scalehandle *sh, t_floatarg f, t_floatarg xxx, t_floatarg yyy)
......
......@@ -260,7 +260,7 @@ static void hslider_draw_select(t_hslider* x,t_glist* glist)
t_scalehandle *sh = (t_scalehandle *)(x->x_gui.x_handle);
t_scalehandle *lh = (t_scalehandle *)(x->x_gui.x_lhandle);
if (glist_isvisible(canvas)) {
//if (glist_isvisible(canvas)) {
if(x->x_gui.x_fsf.x_selected)
{
......@@ -323,7 +323,7 @@ static void hslider_draw_select(t_hslider* x,t_glist* glist)
sys_vgui("destroy %s\n", lh->h_pathname);
x->x_gui.label_vis = 0;
}
}
//}
}
void hslider_check_minmax(t_hslider *x, double min, double max);
......
......@@ -138,7 +138,7 @@ void my_canvas_draw_select(t_my_canvas* x, t_glist* glist)
t_scalehandle *sh = (t_scalehandle *)(x->x_gui.x_handle);
t_scalehandle *lh = (t_scalehandle *)(x->x_gui.x_lhandle);
if (glist_isvisible(canvas)) {
//if (glist_isvisible(canvas)) {
if(x->x_gui.x_fsf.x_selected)
{
......@@ -199,7 +199,7 @@ void my_canvas_draw_select(t_my_canvas* x, t_glist* glist)
sys_vgui("destroy %s\n", lh->h_pathname);
x->x_gui.label_vis = 0;
}
}
//}
}
static void my_canvas__clickhook(t_scalehandle *sh, t_floatarg f, t_floatarg xxx, t_floatarg yyy)
......
......@@ -440,7 +440,7 @@ static void my_numbox_draw_select(t_my_numbox *x, t_glist *glist)
t_scalehandle *sh = (t_scalehandle *)(x->x_gui.x_handle);
t_scalehandle *lh = (t_scalehandle *)(x->x_gui.x_lhandle);
if (glist_isvisible(canvas)) {
//if (glist_isvisible(canvas)) {
if(x->x_gui.x_fsf.x_selected)
{
......@@ -527,7 +527,7 @@ static void my_numbox_draw_select(t_my_numbox *x, t_glist *glist)
sys_vgui("destroy %s\n", lh->h_pathname);
x->x_gui.label_vis = 0;
}
}
//}
}
static void my_numbox__clickhook(t_scalehandle *sh, t_floatarg f, t_floatarg xxx, t_floatarg yyy)
......
......@@ -1311,7 +1311,8 @@ static void text_select(t_gobj *z, t_glist *glist, int state)
outline = "$dash_outline";
else
outline = "$box_outline";
if (glist_isvisible(glist) && gobj_shouldvis(&x->te_g, glist)) {
//fprintf(stderr,"text_select isvisible=%d shouldvis=%d istoplevel=%d\n", glist_isvisible(glist), gobj_shouldvis(&x->te_g, glist), glist_istoplevel(glist));
if (gobj_shouldvis(&x->te_g, glist)) {
if (glist_istoplevel(glist)) {
sys_vgui(".x%lx.c itemconfigure %sR -outline %s\n", glist_getcanvas(glist),
rtext_gettag(y), (state? "$select_color" : outline));
......
......@@ -258,7 +258,7 @@ void toggle_draw_select(t_toggle* x, t_glist* glist)
t_scalehandle *sh = (t_scalehandle *)(x->x_gui.x_handle);
t_scalehandle *lh = (t_scalehandle *)(x->x_gui.x_lhandle);
if (glist_isvisible(canvas)) {
//if (glist_isvisible(canvas)) {
if(x->x_gui.x_fsf.x_selected)
{
......@@ -322,7 +322,7 @@ void toggle_draw_select(t_toggle* x, t_glist* glist)
sys_vgui("destroy %s\n", lh->h_pathname);
x->x_gui.label_vis = 0;
}
}
//}
}
static void toggle__clickhook(t_scalehandle *sh, t_floatarg f, t_floatarg xxx, t_floatarg yyy)
......
......@@ -270,7 +270,7 @@ void vradio_draw_select(t_vradio* x, t_glist* glist)
t_scalehandle *lh = (t_scalehandle *)(x->x_gui.x_lhandle);
int n=x->x_number, i;
if (glist_isvisible(canvas)) {
//if (glist_isvisible(canvas)) {
if(x->x_gui.x_fsf.x_selected)
{
......@@ -342,7 +342,7 @@ void vradio_draw_select(t_vradio* x, t_glist* glist)
sys_vgui("destroy %s\n", lh->h_pathname);
x->x_gui.scale_vis = 0;
}
}
//}
}
static void vradio__clickhook(t_scalehandle *sh, t_floatarg f, t_floatarg xxx, t_floatarg yyy)
......
......@@ -268,7 +268,7 @@ static void vslider_draw_select(t_vslider *x, t_glist *glist)
t_scalehandle *sh = (t_scalehandle *)(x->x_gui.x_handle);
t_scalehandle *lh = (t_scalehandle *)(x->x_gui.x_lhandle);
if (glist_isvisible(canvas)) {
//if (glist_isvisible(canvas)) {
if(x->x_gui.x_fsf.x_selected)
{
......@@ -331,7 +331,7 @@ static void vslider_draw_select(t_vslider *x, t_glist *glist)
sys_vgui("destroy %s\n", lh->h_pathname);
x->x_gui.label_vis = 0;
}
}
//}
}
void vslider_check_minmax(t_vslider *x, double min, double max);
......
......@@ -452,7 +452,7 @@ static void vu_draw_select(t_vu* x,t_glist* glist)
t_scalehandle *sh = (t_scalehandle *)(x->x_gui.x_handle);
t_scalehandle *lh = (t_scalehandle *)(x->x_gui.x_lhandle);
if (glist_isvisible(canvas)) {
//if (glist_isvisible(canvas)) {
if(x->x_gui.x_fsf.x_selected)
{
......@@ -538,7 +538,7 @@ static void vu_draw_select(t_vu* x,t_glist* glist)
sys_vgui("destroy %s\n", lh->h_pathname);
x->x_gui.label_vis = 0;
}
}
//}
}
static void vu__clickhook(t_scalehandle *sh, t_floatarg f, t_floatarg xxx, t_floatarg yyy)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment