summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Adkins <jesserayadkins@gmail.com>2010-10-26 16:06:24 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-28 22:03:43 -0700
commit1d6970a838d4ed42a8c91a10cb5311f98ba959c3 (patch)
tree4fd69dc04510e55f898fd516c144f41593413f9b
parent19bcefb4c89e02833cb7fcffeb7fd3f7224db1c4 (diff)
Remove USE_TEXT_WIDGET (bug 8966)
It was included in the initial revision. The bug dates back to 2006, so I think it's safe to say that this never worked. Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xfontsel.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/xfontsel.c b/xfontsel.c
index e2f4a9f..1fd4b6c 100644
--- a/xfontsel.c
+++ b/xfontsel.c
@@ -342,16 +342,8 @@ see 'xfontsel' manual page."
viewPort =
XtCreateManagedWidget("viewPort",viewportWidgetClass,pane,NZ);
{
-#ifdef USE_TEXT_WIDGET
- Widget text =
- XtCreateManagedWidget("sampleText",asciiTextWidgetClass,viewPort,NZ);
- Arg args[1];
- XtSetArg( args[0], XtNtextSink, &sampleText );
- XtGetValues( text, args, ONE );
-#else
sampleText =
XtCreateManagedWidget("sampleText",ucsLabelWidgetClass,viewPort,NZ);
-#endif
}
}
@@ -921,11 +913,7 @@ static void SetNoFonts(void)
XtSetSensitive(fieldBox, False);
XtSetSensitive(ownButton, False);
if (AppRes.app_defaults_version >= MIN_APP_DEFAULTS_VERSION) {
-#ifdef USE_TEXT_WIDGET
- XtUnmapWidget(XtParent(sampleText));
-#else
XtUnmapWidget(sampleText);
-#endif
}
}
@@ -1129,11 +1117,7 @@ void SetCurrentFont(XtPointer closure)
SetCurrentFontCount();
{
-#ifdef USE_TEXT_WIDGET
- Widget mapWidget = XtParent(sampleText);
-#else
Widget mapWidget = sampleText;
-#endif
Display *dpy = XtDisplay(mapWidget);
XFontStruct *font = XLoadQueryFont(dpy, currentFontNameString);
String sample_text;