[gimp] app: add a USER_DATA column to GimpContainerTreeView's model



commit f1a9908191125152732aecb47d063b80ce190fe5
Author: Michael Natterer <mitch gimp org>
Date:   Sat Feb 13 15:46:34 2010 +0100

    app: add a USER_DATA column to GimpContainerTreeView's model
    
    so users which don't subclass can attach their own per-row stuff

 app/widgets/gimpcontainertreeview.c |    1 +
 app/widgets/gimpcontainertreeview.h |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimpcontainertreeview.c b/app/widgets/gimpcontainertreeview.c
index 75b322d..c75d132 100644
--- a/app/widgets/gimpcontainertreeview.c
+++ b/app/widgets/gimpcontainertreeview.c
@@ -165,6 +165,7 @@ gimp_container_tree_view_init (GimpContainerTreeView *tree_view)
   tree_view->model_columns[GIMP_CONTAINER_TREE_VIEW_COLUMN_RENDERER]        = GIMP_TYPE_VIEW_RENDERER;
   tree_view->model_columns[GIMP_CONTAINER_TREE_VIEW_COLUMN_NAME]            = G_TYPE_STRING;
   tree_view->model_columns[GIMP_CONTAINER_TREE_VIEW_COLUMN_NAME_ATTRIBUTES] = PANGO_TYPE_ATTR_LIST;
+  tree_view->model_columns[GIMP_CONTAINER_TREE_VIEW_COLUMN_USER_DATA]       = G_TYPE_POINTER;
 
   gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (box->scrolled_win),
                                        GTK_SHADOW_IN);
diff --git a/app/widgets/gimpcontainertreeview.h b/app/widgets/gimpcontainertreeview.h
index 3e449ed..e2fb921 100644
--- a/app/widgets/gimpcontainertreeview.h
+++ b/app/widgets/gimpcontainertreeview.h
@@ -30,6 +30,7 @@ enum
   GIMP_CONTAINER_TREE_VIEW_COLUMN_RENDERER,
   GIMP_CONTAINER_TREE_VIEW_COLUMN_NAME,
   GIMP_CONTAINER_TREE_VIEW_COLUMN_NAME_ATTRIBUTES,
+  GIMP_CONTAINER_TREE_VIEW_COLUMN_USER_DATA,
   GIMP_CONTAINER_TREE_VIEW_N_COLUMNS
 };
 



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