diff options
author | Carlos Perelló Marín <carlos@gnome-db.org> | 2001-11-24 23:28:04 +0000 |
---|---|---|
committer | Carlos Perelló MarÃn <carlos@src.gnome.org> | 2001-11-24 23:28:04 +0000 |
commit | c69b1c51219fe073d23356cc737e1d3aff295e96 (patch) | |
tree | 6de8f98e7213ba6c44705732951316a516b0daf3 /src/glade-property-class.c | |
parent | 76f3580bff0ebf4c3a95c8cfbc3a71bc571d42f6 (diff) | |
download | glade-c69b1c51219fe073d23356cc737e1d3aff295e96.tar.gz |
The answer is... My patch sucks!!! I think that now it's solved. I get a
2001-11-24 Carlos Perelló Marín <carlos@gnome-db.org>
* src/glade-property-class.c: The answer is... My patch sucks!!!
I think that now it's solved. I get a new warning, but I hope I will
fix it tomorrow.
Diffstat (limited to 'src/glade-property-class.c')
-rw-r--r-- | src/glade-property-class.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/glade-property-class.c b/src/glade-property-class.c index c671c750..6daee356 100644 --- a/src/glade-property-class.c +++ b/src/glade-property-class.c @@ -176,29 +176,28 @@ glade_widget_property_class_free (GladePropertyClass *class) static GladePropertyType glade_property_class_get_type_from_spec (GParamSpec *spec) { - GType spec_type = G_PARAM_SPEC_TYPE (spec); - if (G_IS_PARAM_SPEC_INT (spec_type) || G_IS_PARAM_SPEC_UINT (spec_type)) { + if (G_IS_PARAM_SPEC_INT (spec) || G_IS_PARAM_SPEC_UINT (spec)) { return GLADE_PROPERTY_TYPE_INTEGER; - } else if (G_IS_PARAM_SPEC_FLOAT (spec_type)) { + } else if (G_IS_PARAM_SPEC_FLOAT (spec)) { return GLADE_PROPERTY_TYPE_FLOAT; - } else if (G_IS_PARAM_SPEC_BOOLEAN (spec_type)) { + } else if (G_IS_PARAM_SPEC_BOOLEAN (spec)) { return GLADE_PROPERTY_TYPE_BOOLEAN; - } else if (G_IS_PARAM_SPEC_STRING (spec_type)) { + } else if (G_IS_PARAM_SPEC_STRING (spec)) { /* FIXME: We should solve the "name" conflict with a better solution */ if (!g_ascii_strcasecmp ( spec->name, "name")) return GLADE_PROPERTY_TYPE_ERROR; else return GLADE_PROPERTY_TYPE_STRING; - } else if (G_IS_PARAM_SPEC_ENUM (spec_type)) { + } else if (G_IS_PARAM_SPEC_ENUM (spec)) { return GLADE_PROPERTY_TYPE_ENUM; - } else if (G_IS_PARAM_SPEC_DOUBLE (spec_type)) { + } else if (G_IS_PARAM_SPEC_DOUBLE (spec)) { return GLADE_PROPERTY_TYPE_DOUBLE; - } else if (G_IS_PARAM_SPEC_LONG (spec_type)) { + } else if (G_IS_PARAM_SPEC_LONG (spec)) { g_warning ("Long not implemented\n"); - } else if (G_IS_PARAM_SPEC_UCHAR (spec_type)) { + } else if (G_IS_PARAM_SPEC_UCHAR (spec)) { g_warning ("uchar not implemented\n"); - } else if (G_IS_PARAM_SPEC_OBJECT (spec_type)) { + } else if (G_IS_PARAM_SPEC_OBJECT (spec)) { return GLADE_PROPERTY_TYPE_OBJECT; } else { /*FIXME: We should implement the "events" property */ |