aboutsummaryrefslogtreecommitdiff
path: root/generic/Text.c
diff options
context:
space:
mode:
authorlecoanet2000-09-27 14:33:20 +0000
committerlecoanet2000-09-27 14:33:20 +0000
commit692152ac2bfc73e6f598b4808e0f33cd43c130fe (patch)
treee9004973e2fe1462b7527f83bd2c3dd7e35fbfdb /generic/Text.c
parentb613c172f014489a8339fc2ffda4e27952e0be2f (diff)
downloadtkzinc-692152ac2bfc73e6f598b4808e0f33cd43c130fe.zip
tkzinc-692152ac2bfc73e6f598b4808e0f33cd43c130fe.tar.gz
tkzinc-692152ac2bfc73e6f598b4808e0f33cd43c130fe.tar.bz2
tkzinc-692152ac2bfc73e6f598b4808e0f33cd43c130fe.tar.xz
Supression de code mort.
Diffstat (limited to 'generic/Text.c')
-rw-r--r--generic/Text.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/generic/Text.c b/generic/Text.c
index 3bb3a02..0db7618 100644
--- a/generic/Text.c
+++ b/generic/Text.c
@@ -82,7 +82,6 @@ typedef struct _TextItemStruct {
ZnAnchor anchor;
ZnAnchor connection_anchor;
ZnColor color;
- ZnColor fill_color;
char *text;
Pixmap fill_pattern;
ZnFont font;
@@ -119,8 +118,6 @@ static ZnAttrConfig text_attrs[] = {
ZN_COORDS_FLAG|ZN_ITEM_FLAG, False },
{ ZN_CONFIG_ANCHOR, "-connectionanchor", NULL,
Tk_Offset(TextItemStruct, connection_anchor), 0, ZN_COORDS_FLAG, False },
- { ZN_CONFIG_COLOR, "-fillcolor", NULL,
- Tk_Offset(TextItemStruct, fill_color), 0, ZN_DRAW_FLAG, False },
{ ZN_CONFIG_PATTERN, "-fillpattern", NULL,
Tk_Offset(TextItemStruct, fill_pattern), 0, ZN_DRAW_FLAG, False },
{ ZN_CONFIG_FONT, "-font", NULL,
@@ -188,7 +185,6 @@ Init(Item item,
text->anchor = ZnAnchorNW;
text->connection_anchor = ZnAnchorSW;
text->color = ZnGetColorByValue(wi->win, wi->fore_color);
- text->fill_color = ZnGetColorByValue(wi->win, wi->back_color);
text->alignment = ZnJustifyLeft;
text->font = Tk_GetFont(wi->interp, wi->win, Tk_NameOfFont(wi->font));
text->width = 0;
@@ -226,7 +222,6 @@ Clone(Item item)
Tk_NameOfBitmap(wi->dpy, text->fill_pattern));
}
text->color = ZnGetColorByValue(wi->win, text->color);
- text->fill_color = ZnGetColorByValue(wi->win, text->fill_color);
text->font = Tk_GetFont(wi->interp, wi->win, Tk_NameOfFont(text->font));
if (text->text_info) {
@@ -263,7 +258,6 @@ Destroy(Item item)
text->fill_pattern = ZnUnspecifiedPattern;
}
ZnFreeColor(text->color);
- ZnFreeColor(text->fill_color);
Tk_FreeFont(text->font);
if (text->text_info) {