Re: Signal handlers: parameter names
- From: "Padraig O'Briain" <Padraig Obriain Sun COM>
- To: jmargaglione yahoo com, cssl geocities com
- Cc: timj gtk org, gtk-devel-list gnome org
- Subject: Re: Signal handlers: parameter names
- Date: Mon, 12 Mar 2001 14:46:02 +0000 (GMT)
> Delivered-To: gtk-devel-list gnome org
> X-Apparently-From: <cssl geocities com>
> X-Accept-Language: en
> MIME-Version: 1.0
> To: John Margaglione <jmargaglione yahoo com>
> Cc: Tim Janik <timj gtk org>, Gtk+ Developers <gtk-devel-list gnome org>
> Subject: Re: Signal handlers: parameter names
> Content-Transfer-Encoding: 7bit
> X-BeenThere: gtk-devel-list gnome org
> X-Loop: gtk-devel-list gnome org
> X-Mailman-Version: 2.0beta5
> List-Id: Development of GTK+ <gtk-devel-list.gnome.org>
>
> John Margaglione wrote:
> > I'm not talking about invoking signals, I'm talking about creating a
> > dialog box to connect signals. In Glade right now you can select a
> > signal by choosing from a list of available signals from a listbox.
> > When you choose one of the signals and generate the source code, Glade
> > has to do a lookup on the names of the parameters to the signal. These
> > have to be stored as static arrays in the Glade source code. If a new
> > signal is added, or the names of the parameters are changed, Glade has
> > to be updated. Using my suggestion there is no rework of Glade
> > necessary.
> Then, why don't you use an XML file that describes them ? So :
> 0) no runtime penalty, except at startup (scan the XML file once and
> build tables in memory)
Startup costs are not insignificant. Perception of performance is probably more
important than the results of any benchmark you run and perception of
performance is very heavily influenced by startup time.
> 1) it's not hardcoded in the source
> 2) it could be auto-generated from source scanning (like docs)
> 3) adding support for new widgets from 3rd party libraries (for example
> GtkExtra) becomes quite easy
>
> BYtE,
> Diego.
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]