aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-11-24 04:07:23 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-11-24 04:07:23 +0000
commit6abfeaada311a61a9590f076ae100531cff42666 (patch)
treece3c9d3cc639fd30f58ca1ca4dfd6e7f6991181a /text.c
parentc00ea30f26399a1e94e923bcb5707434e745530a (diff)
moved inlet/outlet counts to tkwidgets.h
svn path=/trunk/externals/tkwidgets/; revision=9030
Diffstat (limited to 'text.c')
-rw-r--r--text.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/text.c b/text.c
index a9c8266..ca0e1a1 100644
--- a/text.c
+++ b/text.c
@@ -37,9 +37,6 @@
#define TEXT_MIN_WIDTH 40
#define TEXT_MIN_HEIGHT 20
-#define TOTAL_INLETS 1
-#define TOTAL_OUTLETS 2
-
#define DEBUG(x) x
static t_class *textwidget_class;
@@ -109,6 +106,8 @@ static char *textwidget_tk_options[] = {
"undo",
"width",
"wrap",
+// "xscrollcommand", /* problematic since it uses the canvas_id, etc. */
+// "yscrollcommand", /* problematic since it uses the canvas_id, etc. */
};
@@ -187,7 +186,7 @@ static void textwidget_drawme(t_textwidget *x, t_glist *glist)
create_widget(x);
tkwidgets_draw_iolets((t_object*)x, glist,
x->canvas_id, x->iolets_tag, x->all_tag,
- x->width, x->height, TOTAL_INLETS, TOTAL_OUTLETS);
+ x->width, x->height);
if(x->have_scrollbars) draw_scrollbar(x);
sys_vgui("%s create window %d %d -anchor nw -window %s \
-tags {%s %s} -width %d -height %d \n", x->canvas_id->s_name,
@@ -557,7 +556,7 @@ static void textwidget_size(t_textwidget *x, t_float width, t_float height)
tkwidgets_erase_iolets(x->canvas_id, x->iolets_tag);
tkwidgets_draw_iolets((t_object*)x, x->x_glist,
x->canvas_id, x->iolets_tag, x->all_tag,
- x->width, x->height, TOTAL_INLETS, TOTAL_OUTLETS);
+ x->width, x->height);
canvas_fixlinesfor(x->x_glist, (t_text *)x); // 2nd inlet
}
}
@@ -605,7 +604,7 @@ static void textwidget_resize_click_callback(t_textwidget *x, t_floatarg f)
{
tkwidgets_draw_iolets((t_object*)x, canvas,
x->canvas_id, x->iolets_tag, x->all_tag,
- x->width, x->height, TOTAL_INLETS, TOTAL_OUTLETS);
+ x->width, x->height);
canvas_fixlinesfor(x->x_glist, (t_text *)x); // 2nd inlet
}
if (!x->x_resizing && button_state)