summaryrefslogtreecommitdiff
path: root/gladeui/glade-utils.h
diff options
context:
space:
mode:
authorTristan Van Berkom <tvb@src.gnome.org>2008-10-24 15:42:05 +0000
committerTristan Van Berkom <tvb@src.gnome.org>2008-10-24 15:42:05 +0000
commit101b8add8f0a9403586b1ebd4c307fcb4e951167 (patch)
treecda24464f40fe2f544a0091e5a0508a2ebd39a07 /gladeui/glade-utils.h
parent23d26f57739fa06a2cd7e1b26e7cac0f94b176b7 (diff)
downloadglade-101b8add8f0a9403586b1ebd4c307fcb4e951167.tar.gz
string_from_enum, now returns the nick and not the name (generally all
* gladeui/glade-property-class.c: string_from_enum, now returns the nick and not the name (generally all around nicer menus when no displayable values and also smaller nicer glade files). Displayable values are now consequently indexed by nick and not name. * gladeui/glade-displayable-values.[ch]: Added reverse lookup glade_get_value_from_displayable() * gladeui/glade-utils.[ch]: When doing glade_utils_enum/flag_value_from_string(), allow displayable values (also added glade_utils_enum/flag_string_from_value_displayable()). * plugins/gtk+/glade-icon-sources.c: Use all around displayable values for items in the treeview. svn path=/trunk/; revision=1993
Diffstat (limited to 'gladeui/glade-utils.h')
-rw-r--r--gladeui/glade-utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gladeui/glade-utils.h b/gladeui/glade-utils.h
index c7896d03..6697f55b 100644
--- a/gladeui/glade-utils.h
+++ b/gladeui/glade-utils.h
@@ -137,6 +137,9 @@ gint glade_utils_enum_value_from_string (GType enum_type, const gc
gchar *glade_utils_enum_string_from_value (GType enum_type, gint value);
gint glade_utils_flags_value_from_string (GType enum_type, const gchar *strval);
gchar *glade_utils_flags_string_from_value (GType enum_type, gint value);
+gchar *glade_utils_flags_string_from_value_displayable (GType flags_type, gint value);
+gchar *glade_utils_enum_string_from_value_displayable (GType flags_type, gint value);
+
GValue *glade_utils_value_from_string (GType type,
const gchar *string,