diff options
author | Tim Janik <timj@gtk.org> | 1998-07-27 01:50:16 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-07-27 01:50:16 +0000 |
commit | fc7c7f466f10d58d59426fa24fbc8741e0ec61ff (patch) | |
tree | c0874cb56bfc086384cfcacb6c4f324968abade0 /gtk/gtktypeutils.h | |
parent | 656061cb2b84e1fe7abd30d27a48718d62e97270 (diff) | |
download | gtk+-fc7c7f466f10d58d59426fa24fbc8741e0ec61ff.tar.gz |
fixup, so that enum values are looked up.
Mon Jul 27 03:11:20 1998 Tim Janik <timj@gtk.org>
* gtk/gtkbindings.c (binding_compose_params): fixup, so that enum
values are looked up.
* gtk/gtktypeutils.h:
* gtk/gtktypeutils.c: new functions gtk_type_flags_find_value and
gtk_type_enums_find_value to lookup enum values.
* gtk/gtkctree.h:
* gtk/gtkctree.c: change enum name from GtkCTreeExpansion to
GtkCTreeExpansionType. fixed signal creations to pass the enum
types not just the base type GTK_TYPE_ENUM.
* gtk/gtkclist.h:
* gtk/gtkclist.c: fixed signal creations to pass the real enum
types not just the base type GTK_TYPE_ENUM.
Diffstat (limited to 'gtk/gtktypeutils.h')
-rw-r--r-- | gtk/gtktypeutils.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk/gtktypeutils.h b/gtk/gtktypeutils.h index af66787b2f..c2b3668b96 100644 --- a/gtk/gtktypeutils.h +++ b/gtk/gtktypeutils.h @@ -263,9 +263,12 @@ GtkType gtk_type_register_enum (const gchar *type_name, GtkEnumValue *values); GtkType gtk_type_register_flags (const gchar *type_name, GtkFlagValue *values); -GtkEnumValue* gtk_type_enum_get_values (GtkType enum_type); -GtkFlagValue* gtk_type_flags_get_values (GtkType flags_type); - +GtkEnumValue* gtk_type_enum_get_values (GtkType enum_type); +GtkFlagValue* gtk_type_flags_get_values (GtkType flags_type); +GtkEnumValue* gtk_type_enum_find_value (GtkType enum_type, + const gchar *value_name); +GtkFlagValue* gtk_type_flags_find_value (GtkType flag_type, + const gchar *value_name); #ifdef __cplusplus } |