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 <[email protected]>
---
 xfontsel.c |   16 ----------------
 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;
-- 
1.7.1

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to