Re: [Glade-devel] _ or - in boolean properties?

Date view Thread view Subject view Author view

From: Chema Celorio (chema@ximian.com)
Date: Mon Jul 02 2001 - 14:25:02 EDT


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.

>
> Another question. Does <ParamSpec/> work for properties of all kinds of data
> types, or only boolean properties? Or only a few of them?

It works for the types that we have code for it. I don't think i coded
all of them yet, just the ones i needed at the time I wrote it, however
adding a new type is not hard.

regards,
Chema

>
> Answers?
>
> Archit Baweja
> --
> Can you MAIL a BEAN CAKE?
>
> _______________________________________________
> Glade-devel maillist - Glade-devel@ximian.com
> http://lists.ximian.com/mailman/listinfo/glade-devel
>

_______________________________________________
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 : Mon Jul 02 2001 - 16:52:38 EDT