From: Damon Chaplin (damon@ximian.com)
Date: Mon Jul 02 2001 - 20:40:21 EDT
Archit Baweja wrote:
>
> Hi
>
> Before I start making changes to gtk<widget>.xml files I'd like to discuss
> something first.
>
> Currently, the gtk<widget>.xml files describe a <GetTypeFunction> tag
> for the (obviously enough) _get_type function. I think that it is a waste to do
> so. For just one thing. It doesn't serve any purpose. If we can get the same
> thing from something already there, I think it is better option.
>
> In the <Name> we give the widget name, we can make a _get_type from that.
> But as I've disscussed befor with chema, if we use only Capitals to locate
> where to put "_", it gives us problems in some situations.
> like for GtkButton we get gtk_button_get_type (we use the capital B,to identify
> place to insert the "_"). But for GtkHBox if we use the same technique, we
> get gtk_h_box_get_type, which is not so. So I once again recommend use of gob
> style naming. so GtkButton -> Gtk:Button. That way getting string-ified version
> of the _get_type function can be obtained accurately and reduce bloat of xml
> files.
>
> Comments? Suggestions?
I don't think it is too much bloat - it is only one property per widget class,
so it isn't a major effort for the widget developer to add.
I think if you use something like 'Gtk:Button' you'll only cause confusion.
Damon
_______________________________________________
Glade-devel maillist - Glade-devel@ximian.com
http://lists.ximian.com/mailman/listinfo/glade-devel
This archive was generated by hypermail 2b29 : Mon Jul 02 2001 - 20:53:09 EDT