G_PARAM_STATIC_*

2007-03-10 Thread Stefan Kost
hi, I just found G_PARAM_STATIC_NAME, G_PARAM_STATIC_NICK, G_PARAM_STATIC_BLURB flags. Does it mean that if I do: g_param_spec_string("name", "name prop", "name for blabla", NULL, G_PARAM_READWRITE); I can apply them to save a g_strdup? If so wouldn't it make send to have: #define G_PARAM_STA

Re: g_slist and const

2007-03-10 Thread Murray Cumming
On Sat, 2007-03-10 at 11:25 +0100, Asbjørn wrote: > On Saturday 10 March 2007 00:23, you wrote: > > Asbjørn wrote: > > > I use C++/glib and i get this strange looking function: > > > > > > guint my_class::length (const GSList *list) /* const to protect my list > > > */ { > > >/* cast it to a

Re: g_slist and const

2007-03-10 Thread Asbjørn
On Saturday 10 March 2007 00:23, you wrote: > Asbjørn wrote: > > I use C++/glib and i get this strange looking function: > > > > guint my_class::length (const GSList *list) /* const to protect my list > > */ { > >/* cast it to a non const pointer! */ > > return (g_slist_length ((GSList