Re: properties question
- From: Stefan Kost <kost imn htwk-leipzig de>
- To: Neil Zanella <nzanella gmail com>
- Cc: GTK App Devel List <gtk-app-devel-list gnome org>
- Subject: Re: properties question
- Date: Mon, 08 Nov 2004 08:47:57 +0100
Hi Neil,
When defining a property you need to supply a g_param_spec for each property.
The g_param_spec defines the type of the property and some metadata + range
contrains and so on. Therefore you can easily do multi-type properties.
GtkWidgets e.g. do this by providing several properties, e.g.
fill-color
fill-color-gdk
fill-color-rgba
Then the value that is supplied last is used.
Stefan
Neil Zanella wrote:
Hello,
I am about to define my GObjects. I want to know, does it make sense for
some properties to be "multi-valued", like say, consisting of GLists, vectors,
Hash Tables, etc...? I know this is basic, but I'm sort of new to this.
Thanks,
Neil
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
\|/ Stefan Kost
<@ @> private business
+-oOO-(_)-OOo------------------------------------------------------ - - - - -
| __ Address Simildenstr. 5 HTWK Leipzig, Fb IMN, Postfach 301166
| /// 04277 Leipzig 04251 Leipzig
| __ /// Germany Germany
| \\\/// Phone +49341 2253538 +49341 30766101
| \__/ EMail st_kost_at_gmx.net kost_at_imn.htwk-leipzig.de
| WWW www.sonicpulse.de www.imn.htwk-leipzig.de/~kost/about.html
===-=-=--=---=---------------------------------- - - - - -
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]