diff --git a/pd/src/g_bang.c b/pd/src/g_bang.c index 6beba307011643c2d8dddb485663edef47e48f78..22a1182efafc8bd36917d62ff865c3aead347505 100644 --- a/pd/src/g_bang.c +++ b/pd/src/g_bang.c @@ -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) diff --git a/pd/src/g_editor.c b/pd/src/g_editor.c index b73cbc4c44becf2d5da45602136a27a84c28cfe0..0b5499d35932f354cc97b1621184fe003575a7a6 100644 --- a/pd/src/g_editor.c +++ b/pd/src/g_editor.c @@ -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; } } diff --git a/pd/src/g_graph.c b/pd/src/g_graph.c index c56bd89029f31c3e5d6978e48bfea54c885563d8..db1bb2c8abcbcab30ed2df7375795c895f1d7d8f 100644 --- a/pd/src/g_graph.c +++ b/pd/src/g_graph.c @@ -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); diff --git a/pd/src/g_hdial.c b/pd/src/g_hdial.c index 1d32a203e641ebc61096d262c1fcd341ef6c8e51..2cac378d16bfe101b2d8cec29d9ead5acbd5d969 100644 --- a/pd/src/g_hdial.c +++ b/pd/src/g_hdial.c @@ -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) diff --git a/pd/src/g_hslider.c b/pd/src/g_hslider.c index 2153439a4f3bc35eeec263a97b4526f0f73fdd88..b6f0fa5140078479d4ca0acfdad9a1f6a7be2f3f 100644 --- a/pd/src/g_hslider.c +++ b/pd/src/g_hslider.c @@ -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); diff --git a/pd/src/g_mycanvas.c b/pd/src/g_mycanvas.c index 4f6a76c47fd426fb53141024ca1686b5505aa989..7057ed6dde74c2de896879fbabb78eacb1e5a01d 100644 --- a/pd/src/g_mycanvas.c +++ b/pd/src/g_mycanvas.c @@ -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) diff --git a/pd/src/g_numbox.c b/pd/src/g_numbox.c index d8efccc30814c10b826bc9be8b5ff39c0c6d9d3c..c677ea682380c122c967651705a1d85faadbbeb0 100644 --- a/pd/src/g_numbox.c +++ b/pd/src/g_numbox.c @@ -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) diff --git a/pd/src/g_text.c b/pd/src/g_text.c index c2451f02d066b85ed5291c0d039bf774f364c4e4..204ac3e7ae6920027b53ae071da91b88efdb17b7 100644 --- a/pd/src/g_text.c +++ b/pd/src/g_text.c @@ -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)); diff --git a/pd/src/g_toggle.c b/pd/src/g_toggle.c index 2641d9cae5a17287b36dfe0b331f96d335a0d86e..4fe226ce44553e86365325f972282fe17ded0faa 100644 --- a/pd/src/g_toggle.c +++ b/pd/src/g_toggle.c @@ -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) diff --git a/pd/src/g_vdial.c b/pd/src/g_vdial.c index c996c87c8cf9b61402858aa494770b71b25e7ab2..18e1b0bfa3a4cf201805b9fdc09c4a1a76355e47 100644 --- a/pd/src/g_vdial.c +++ b/pd/src/g_vdial.c @@ -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) diff --git a/pd/src/g_vslider.c b/pd/src/g_vslider.c index 0c499b6e6c0fbe9eeee23dcf5cb7f80d10e9de7b..b98aedc2544a46a4e9109cfddb186aa25be3d8d0 100644 --- a/pd/src/g_vslider.c +++ b/pd/src/g_vslider.c @@ -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); diff --git a/pd/src/g_vumeter.c b/pd/src/g_vumeter.c index 945580c90e45a65ee19cf55f7faf36ef84a314ad..f2910093ce3783607954273cef2e4d8257abf198 100644 --- a/pd/src/g_vumeter.c +++ b/pd/src/g_vumeter.c @@ -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)