Re: Size of widget



learfox furry ao net writes: 
When yer definatly sure the widget has the right size you want, use

w = GTK_WIDGET(fixed);
if(w != NULL)

What's with 'w != NULL'? If it's NULL then the GTK_WIDGET cast will
barf all over the place, among other things. But you should know
whether it's NULL...


Eeep, thanks for pointing that out, I ment to check if `fixed' was !=
NULL.

if(fixed != NULL)
{
        w = GTK_WIDGET(fixed);

        /* ... */

}

Sorry about that introduction level mistake! :(


--
Sincerely,                  ,"-_                         \|/
-Capt. Taura M.             ,   O=__                    --X--
..__                         ,_JNMNNEO=_                 /|\
OMNOUMmnne.                  {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn.               'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe              '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe.                "7OMMMMNNNNNWWEEEEOOOOOO"   "'.
EEBNNMMMNWNWWEEIMMNe.             __  7EMMMNNNNNWWWEEEEEEEOO.     " .
NNMMMMWWWMMMWEINMMMNn            "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._     .
                  http://furry.ao.net/~learfox/





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