From: Owen Taylor (otaylor@redhat.com)
Date: Fri Jul 06 2001 - 16:34:42 EDT
Chema Celorio <chema@ximian.com> writes:
> On 02 Jul 2001 23:35:13 +0530, Archit Baweja wrote:
> > Hi
> >
> > A quick thought. I've been working on the xml files, as all of you know.
> > For boolean properties, I just have to do this in the gtk<widget>.xml
> >
> > (in context of GtkEntry.activates_default property)
> >
> > <Property>
> > <Name>activates_default</Name>
> > <ParamSpec/>
> > </Property>
> >
> > And property-querying code does the rest. Now first the problem. The above
> > won't work. In the gtk code, it _is_ registere as activates_default, but I
> > have to say activate-default, only then it works? Is that behavior of
> > converting the - to a _ intended?
>
> I saw this too. It looks like it is intended gtk+ behavior.
GTK+ (and hence GObject) has treated - and _ interchangeable in signal
and property names for a long time. It was done this way so scheme and
normal languages could use the symbol and property names as symbols.
If you are writing some sort of file format, you should probably pick
one or the other and stick to it, but from GTK+'s point of view, it
doesn't care.
(I'd say that we probably consider the '-' slightly more standard,
though most C code tends to use '_' a little more.)
Regards,
Owen
_______________________________________________
Glade-devel maillist - Glade-devel@ximian.com
http://lists.ximian.com/mailman/listinfo/glade-devel
This archive was generated by hypermail 2b29 : Fri Jul 06 2001 - 16:54:03 EDT