Re: GParamSpec
- From: Tim Janik <timj gtk org>
- To: Chema Celorio <chema ximian com>
- Cc: Owen Taylor <otaylor redhat com>, Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: GParamSpec
- Date: Thu, 21 Jun 2001 02:45:03 +0200 (CEST)
On 20 Jun 2001, Chema Celorio wrote:
> On 19 Jun 2001 23:07:19 -0400, Owen Taylor wrote:
> > Each parameter has three strings associated with it:
> >
> > gchar *name;
> > gchar *nick;
> > gchar *blurb;
> >
> > name: the name of the property "Type"
> > nick: The programmatic name of the property "type"
> > blurb: tooltip "
>
>
> Yes, but name gives me "type" not Type, and for enum values name has
> "GTK_WINDOW_TOPLEVEL" and nick has "toplevel", i still need "Toplevel".
as i outlined in my previous mail to you on this topic,
for enums, you probably better use the identifiers that are supported
by scipting languages (language bindings) as well, which is plain name
or nick.
> > > - Another thing that i bumped into last night (and this was the first
> > > time I started using the ParamSpec) is that i could not get the default
> > > value for an Enum spec.
> >
> > Why not?
> >
> > struct _GParamSpecEnum
> > {
> > GParamSpec parent_instance;
> >
> > GEnumClass *enum_class;
> > glong default_value;
> > };
> >
>
> I'm sorry, my mistake.
> Hmm why is it a glong ? (just curious)
thanks for catching, it isn't anymore.
>
> Chema
>
>
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]