bug-oleo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Oleo under IRIX


From: Danny Backx
Subject: Re: Oleo under IRIX
Date: Wed, 25 Oct 2000 20:56:57 +0200

Oystein Godoy wrote:
> I have rerun oleo under dbx and got the following result (everything
> cut directly from the output window...). Is this better? I still can't
> get GDB to run properly...

This is better, it shows a couple of Xt calls with a 0x0 first argument
where a widget-id is expected.

It turns out that you've uncovered a Motif 1.2 problem - I mean a problem
in Oleo with Motif 1.2 - I only test against Motif 2.0 versions of LessTif,
and sometimes against OpenMotif which is 2.1.* .

Change inside src/io-motif.c as indicated below, this is near line 633.

        Danny

void PrintOptionsOk(Widget w, XtPointer client, XtPointer call)
{
        int     scale;
        float   f;

        MotifSelectGlobal(w);
        XtUnmanageChild(optionsDialog);

        if (Global->MotifGlobal->ZoomScale) {
                XtVaGetValues(Global->MotifGlobal->ZoomScale,
                                XmNvalue, &scale,
                        NULL);
                f = scale;
        } else
                f = 100.0;

        f = f / 100.0;
        Global->zoom = f;

        MessageAppend(False, "Set zoom to %2.0f%%", 100 * Global->zoom);
}

void PrintOptionsReset(Widget w)
{
        float   f = Global->zoom * 100.0;
        int     s = f;

        if (Global->MotifGlobal->ZoomScale) {
                XtVaSetValues(Global->MotifGlobal->ZoomScale,
                                XmNvalue,       s,
                        NULL);
        }
}

-- 
Danny Backx (address@hidden address@hidden)
Home page :     http://users.skynet.be/danny.backx
Projects:       LessTif (http://www.lesstif.org)
                Oleo    (http://www.gnu.org/software/oleo/oleo.html)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]