[Glade-devel] gob style naming?

Date view Thread view Subject view Author view

From: Archit Baweja (bighead@crosswinds.net)
Date: Sun Jul 01 2001 - 09:05:56 EDT


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?

Archit Baweja

--
Honorable, adj.:
	Afflicted with an impediment in one's reach.  In legislative
	bodies, it is customary to mention all members as honorable; as,
	"the honorable gentleman is a scurvy cur."
		-- Ambrose Bierce, "The Devil's Dictionary"

_______________________________________________ Glade-devel maillist - Glade-devel@ximian.com http://lists.ximian.com/mailman/listinfo/glade-devel


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sun Jul 01 2001 - 12:55:19 EDT