G_PARAM_SPEC_VALUE_TYPE() question

2012-05-15 Thread Marc Balmer
Hi I want to set properties of an object using the g_value_set_type() functions and to cast my value (which I get from a Lua script, which e.g. does not differentiate between integers and floats) I need to know the type of the property. Ideally something like the following: switch

Re: G_PARAM_SPEC_VALUE_TYPE() question

2012-05-15 Thread David Nečas
On Tue, May 15, 2012 at 08:39:12AM +0200, Marc Balmer wrote: I want to set properties of an object using the g_value_set_type() functions and to cast my value (which I get from a Lua script, which e.g. does not differentiate between integers and floats) I need to know the type of the property.