[xorg-bugzilla-noise] [Bug 1316] New: editres: Fix for GetValues

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Sep 9 09:32:16 PDT 2004


Please do not reply to this email: if you want to comment on the bug, go to          
the URL shown below and enter yourcomments there.   
 
https://freedesktop.org/bugzilla/show_bug.cgi?id=1316        
   
           Summary: editres: Fix for GetValues
           Product: xorg
           Version: CVS_head
          Platform: All
               URL: http://www.lug-
                    bs.de/leute/v.gering/editres/src/editres.patch
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Lib/Xt
        AssignedTo: xorg-bugzilla-noise at freedesktop.org
        ReportedBy: alan.coopersmith at sun.com
                CC: roland.mainz at nrubsig.org


[Importing from old X.Org bug database.  This was originally reported to X.Org
 on Wed, 08 Feb 95 by Peter Derr from DEC.   It was marked unresolved in the 
 old bug database - someone will need to confirm this is still an issue and if 
 the provided patch against X11R6.0-patch5 is still needed and how much it may
 need to be modified to integrate to the current tree.   -alan- ]

     VERSION:

R6, public-patch-5

     CLIENT MACHINE and OPERATING SYSTEM:

Digital Alpha DEC 3000/500, DEC OSF/1 V3.2

     DISPLAY TYPE:

8-bit framebuffer

     WINDOW MANAGER:

mwm

     COMPILER:

native ANSI cc

     AREA:

editres

     SYNOPSIS:

The GetValues feature of editres seems to be incomplete.  The UI instructs
the user that "mb2 gets a value" but it doesn't work because it is only
partially implemented.

     DESCRIPTION:

Here's what I did to make GetValues work in editres: 

    Fixed a bug in programs/editres/handler.c where the wrong widget id
    was being sent.

    Expanded on the partially implemented code for GetValues in
    lib/Xmu/EditresCom.c.  The code I added finds the resource in the
    widget, converts it to String using XtConvertAndStore() if
    possible, else falls back to representing the value as an integer.

    To convert resource values to string requires a collection of
    whatever-to-String converters.  I've added a few in a new module
    linked into libXt, lib/Xt/StringConverters.c.  The function
    _XtInitStringConverters() registers these converters and is called
    in XtCreateApplicationContext() in lib/Xt/Display.c.

    The lib/Xt/Imakefile is modified to link the new StringConverters.o
    module into libXt, as well as linking EditresCom.o from libXmu into
    libXt (EditresCom.o depends on Lower.o from Xmu so that's linked
    in, too).  This allows editres to work with all Xt-based
    applications, not just those that use Xaw, without having to link
    with libXmu.  (I've also modified our implementation of libXm so
    that the Motif vendor shell, which overwrites the Xt vendor shell,
    also adds the _XEditResCheckMessages() event handler.)  It's also
    possible to add an initialize routine it the Xt vendorShellClassRec
    that will add the _XEditResCheckMessages() event handler so that
    Xt-only applications will work with editres.



     REPEAT BY:

Using editres, display the resource box of a widget.  Use mb2 to try to
get a value.  No matter what widget or resource you choose, the string
"NoValue" always appears in the resource value text window.        
   
   
--         
Configure bugmail: https://freedesktop.org/bugzilla/userprefs.cgi?tab=email       
   
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the xorg-bugzilla-noise mailing list