RE: widget subclassing problem



Hello again,


and thanks for all your detailed answers!

With the SET_ & GET_PROPERTY methods everything woks fine now.


Greez
Josef


-----Original Message-----
From: gtk-perl-list-bounces gnome org on behalf of muppet
Sent: Thu 1/26/2006 10:00 PM
To: gtk-perl-list gnome org
Subject: Re: widget subclassing problem
 

zentara said:
On Thu, 26 Jan 2006 12:45:02 -0500 (EST)
"muppet" <scott asofyet org> wrote:

Two problems here:  first, $my_text is not defined (i presume you have a
global in your copy), and second, the properties have not yet been set in
INIT_INSTANCE.  Instantiation is basically a sequence of INSTANCE_INIT and a
bunch of SET_PROPERTYs.  You'll have to create the Label with no string, and
then provide a property setter or SET_PROPERTY that puts the text into the
label with set_text().

I know this is a hack, but what do you think of just building the widgets in
the SET_PROPERTY, once the options are known?

Because the property may be set multiple times or not at all.



-- 
muppet <scott at asofyet dot org>

_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list




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