[gimp] libgimpwidgets: fill ABBREV column in GimpEnumStore
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpwidgets: fill ABBREV column in GimpEnumStore
- Date: Thu, 30 Nov 2017 08:15:35 +0000 (UTC)
commit 658d07dffee424b1a1c4b4d2f8e40041c29000b9
Author: Ell <ell_se yahoo com>
Date: Wed Nov 29 16:34:30 2017 -0500
libgimpwidgets: fill ABBREV column in GimpEnumStore
Use gimp_enum_value_get_abbrev() to fill the ABBREV column of
GimpEnumStore.
libgimpwidgets/gimpenumstore.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/libgimpwidgets/gimpenumstore.c b/libgimpwidgets/gimpenumstore.c
index a20418a..6774427 100644
--- a/libgimpwidgets/gimpenumstore.c
+++ b/libgimpwidgets/gimpenumstore.c
@@ -154,17 +154,20 @@ gimp_enum_store_add_value (GtkListStore *store,
{
GtkTreeIter iter = { 0, };
const gchar *desc;
+ const gchar *abbrev;
gchar *stripped;
- desc = gimp_enum_value_get_desc (GIMP_ENUM_STORE (store)->enum_class, value);
+ desc = gimp_enum_value_get_desc (GIMP_ENUM_STORE (store)->enum_class, value);
+ abbrev = gimp_enum_value_get_abbrev (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,
- GIMP_INT_STORE_LABEL, stripped,
+ GIMP_INT_STORE_VALUE, value->value,
+ GIMP_INT_STORE_LABEL, stripped,
+ GIMP_INT_STORE_ABBREV, abbrev,
-1);
g_free (stripped);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]