mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 14:42:10 +01:00
set the value_type in the param spec; closes bug 40210
2001-01-05 Havoc Pennington <hp@redhat.com> * gparamspecs.c (g_param_spec_enum): set the value_type in the param spec; closes bug 40210 (g_param_spec_flags): ditto for flags
This commit is contained in:
parent
71e0f93747
commit
993613d296
@ -1,3 +1,9 @@
|
||||
2001-01-05 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gparamspecs.c (g_param_spec_enum): set the value_type in the
|
||||
param spec; closes bug 40210
|
||||
(g_param_spec_flags): ditto for flags
|
||||
|
||||
2001-01-03 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
* gobject.c:
|
||||
|
@ -1359,6 +1359,7 @@ g_param_spec_enum (const gchar *name,
|
||||
|
||||
espec->enum_class = g_type_class_ref (enum_type);
|
||||
espec->default_value = default_value;
|
||||
G_PARAM_SPEC (espec)->value_type = enum_type;
|
||||
|
||||
return G_PARAM_SPEC (espec);
|
||||
}
|
||||
@ -1383,6 +1384,7 @@ g_param_spec_flags (const gchar *name,
|
||||
|
||||
fspec->flags_class = g_type_class_ref (flags_type);
|
||||
fspec->default_value = default_value;
|
||||
G_PARAM_SPEC (fspec)->value_type = flags_type;
|
||||
|
||||
return G_PARAM_SPEC (fspec);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user