diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2007-11-26 20:54:16 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2007-11-26 20:54:16 +0000 |
commit | 0b109af8d51a5d791447e30f4c9aba110e0417b7 (patch) | |
tree | ec4fcb918e0d3257ec373bd8f0d39c98f334c590 | |
parent | 4a31b8161144bfc677d950ed27f706a33211ef5b (diff) |
don't draw iolets when in GOP; erase_iolets() is not necessary in eraseme() since Tk's destroy is recursive and is using all_tag
svn path=/trunk/externals/tkwidgets/; revision=9044
-rw-r--r-- | checkbutton.c | 7 | ||||
-rw-r--r-- | text.c | 8 |
2 files changed, 8 insertions, 7 deletions
diff --git a/checkbutton.c b/checkbutton.c index 52e437a..1c15784 100644 --- a/checkbutton.c +++ b/checkbutton.c @@ -128,9 +128,10 @@ static void drawme(t_checkbutton *x, t_glist *glist) -command {pd [concat %s output $::%s::state \\;]}\n", x->widget_id->s_name, x->tcl_namespace->s_name, x->receive_name->s_name, x->tcl_namespace->s_name); - tkwidgets_draw_iolets((t_object*)x, glist, - x->canvas_id, x->iolets_tag, x->all_tag, - x->width, x->height); + if(x->x_glist == x->x_canvas) // if GOP, don't draw inlets + tkwidgets_draw_iolets((t_object*)x, glist, + x->canvas_id, x->iolets_tag, x->all_tag, + x->width, x->height); sys_vgui("%s create window %d %d -anchor nw -window %s -tags {%s %s}\n", x->canvas_id->s_name, text_xpix(&x->x_obj, glist), text_ypix(&x->x_obj, glist), @@ -183,9 +183,10 @@ static void drawme(t_textwidget *x, t_glist *glist) DEBUG(post("drawme: firsttime %d canvas %lx glist %lx", x->x_canvas, glist);); set_tkwidgets_ids(x,glist_getcanvas(glist)); create_widget(x); - tkwidgets_draw_iolets((t_object*)x, glist, - x->canvas_id, x->iolets_tag, x->all_tag, - x->width, x->height); + if(x->x_glist == x->x_canvas) // if GOP, don't draw inlets + tkwidgets_draw_iolets((t_object*)x, glist, + x->canvas_id, x->iolets_tag, x->all_tag, + x->width, x->height); if(x->have_scrollbars) tkwidgets_draw_y_scrollbar(x->widget_id, x->scrollbar_id); sys_vgui("%s create window %d %d -anchor nw -window %s \ @@ -199,7 +200,6 @@ static void drawme(t_textwidget *x, t_glist *glist) static void eraseme(t_textwidget* x) { DEBUG(post("eraseme: canvas %lx", x->x_canvas);); - tkwidgets_erase_iolets(x->canvas_id, x->iolets_tag); sys_vgui("destroy %s\n", x->frame_id->s_name); sys_vgui("%s delete %s\n", x->canvas_id->s_name, x->all_tag->s_name); } |