Commit 87f14fbd authored by Michael Natterer's avatar Michael Natterer 😴

libgimpwidgets: support enums with mnemonics in GimpEnumStrore

Strip the '_' away, combo boxes don't have mnemonics.
parent 0652cd01
......@@ -153,14 +153,20 @@ gimp_enum_store_add_value (GtkListStore *store,
GtkTreeIter iter = { 0, };
const gchar *desc;
gchar *stripped;
desc = gimp_enum_value_get_desc (GIMP_ENUM_STORE (store)->enum_class, value);
/* no mnemonics in combo boxes */
stripped = gimp_strip_uline (desc);
gtk_list_store_append (store, &iter);
gtk_list_store_set (store, &iter,
GIMP_INT_STORE_VALUE, value->value,
g_free (stripped);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment