Re: OptionMenu width ?

Jeff Franks <[email protected]> Tue, 06 Jan 2004 20:03:21 +1100
Newsgroups gmane.comp.gnome.inti
Message-ID <[email protected]>
Bo Lorentsen wrote:

> When making a new GtkWidget type (done once per Widget, yes !) inti 
> connects a static proxy function from the WidgetClass. This will just 
> call the default Gtk handler if a signal is imitted, but before that, 
> it will test if a WidgetSignal class is part of the Widget class by 
> doing a dynamic_cast. That dynamic cast will be performed regardless 
> of the presence of the WidgetSignals class, and this is somewhat costy.
>
> The only way to prevent this is either to remove the dynamic_cast, or 
> to attach the widget signal handlers only when needed (like in the 
> WidgetSignal constructor). The problem in this is that the user NEED 
> to be aware of this, when making his own derived classes.

OK. I see your point. I'll give this some more thought...

Jeff Franks.


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click