Re: can_change_screen property for GtkWindow



On Wed, 2 Oct 2002, Owen Taylor wrote:

> > /* returns name of a boolean property */
> > const gchar* g_param_spec_get_setter (GParamSpec *client_pspec);
> > 
> > /* returns client pspec name from a boolean setter */
> > const gchar* g_param_spec_get_client (GParamSpec *setter_pspec);
> > 
> > /* returns a boolean setter property for client_property */
> > GParamSpec* g_param_spec_setter (const gchar    *client_property,
> >                                  gboolean        default_value,
> >                                  GParamSpecFlags flags);

> There is certainly something to be said for keeping your primitives
> simple and adding structure by convention. 
> 
> JavaBeans takes this probably too far ... all handling of properties
> is by conventionally named methods ... but the above seems like 
> clutter to me.

you do realize that this isn't just convenience but provides vital information
for generic property related code if that's meant to be implement robustly?

> 
> Regards,
>                                         Owen
> 

---
ciaoTJ




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]