[gimp] libgimpwidgets: add ABBREV column to GimpIntStore



commit 684c8501960ba70e7061d2c9890986c394e1a24d
Author: Ell <ell_se yahoo com>
Date:   Wed Nov 29 16:31:54 2017 -0500

    libgimpwidgets: add ABBREV column to GimpIntStore
    
    ... which holds an abbreviated label, or NULL to use the normal
    label.

 libgimpwidgets/gimpintstore.c |    1 +
 libgimpwidgets/gimpintstore.h |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libgimpwidgets/gimpintstore.c b/libgimpwidgets/gimpintstore.c
index d790be2..fb6a885 100644
--- a/libgimpwidgets/gimpintstore.c
+++ b/libgimpwidgets/gimpintstore.c
@@ -150,6 +150,7 @@ gimp_int_store_constructed (GObject *object)
   types[GIMP_INT_STORE_PIXBUF]    = GDK_TYPE_PIXBUF;
   types[GIMP_INT_STORE_USER_DATA] = (priv->user_data_type != G_TYPE_NONE ?
                                      priv->user_data_type : G_TYPE_POINTER);
+  types[GIMP_INT_STORE_ABBREV]    = G_TYPE_STRING;
 
   gtk_list_store_set_column_types (GTK_LIST_STORE (store),
                                    GIMP_INT_STORE_NUM_COLUMNS, types);
diff --git a/libgimpwidgets/gimpintstore.h b/libgimpwidgets/gimpintstore.h
index f77d0de..4be042a 100644
--- a/libgimpwidgets/gimpintstore.h
+++ b/libgimpwidgets/gimpintstore.h
@@ -36,6 +36,7 @@ G_BEGIN_DECLS
  * @GIMP_INT_STORE_ICON_NAME:   an icon name
  * @GIMP_INT_STORE_PIXBUF:      a #GdkPixbuf
  * @GIMP_INT_STORE_USER_DATA:   arbitrary user data
+ * @GIMP_INT_STORE_ABBREV:      an abbreviated label
  * @GIMP_INT_STORE_NUM_COLUMNS: the number of columns
  * @GIMP_INT_STORE_STOCK_ID:    compat alias for @GIMP_INT_STORE_ICON_NAME
  *
@@ -48,6 +49,7 @@ typedef enum
   GIMP_INT_STORE_ICON_NAME,
   GIMP_INT_STORE_PIXBUF,
   GIMP_INT_STORE_USER_DATA,
+  GIMP_INT_STORE_ABBREV,
   GIMP_INT_STORE_NUM_COLUMNS,
 
   /* deprecated */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]