diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-05-27 23:13:25 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-29 00:13:23 +0800 |
commit | fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056 (patch) | |
tree | ae78be371695c3dc18847b87d3f014f985aa3a40 /widgets/table/e-tree-simple.c | |
parent | 6f5464f34ceec9e5701e3e3e651a40f9e6b3a072 (diff) | |
download | gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.gz gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.bz2 gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.lz gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.xz gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.zst gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.zip |
Prefer GLib basic types over C types.
Diffstat (limited to 'widgets/table/e-tree-simple.c')
-rw-r--r-- | widgets/table/e-tree-simple.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/widgets/table/e-tree-simple.c b/widgets/table/e-tree-simple.c index 3252a3db18..2704b7ea24 100644 --- a/widgets/table/e-tree-simple.c +++ b/widgets/table/e-tree-simple.c @@ -39,19 +39,19 @@ simple_column_count (ETableModel *etm) } /* The default for simple_duplicate_value is to return the raw value. */ -static void * -simple_duplicate_value (ETableModel *etm, int col, const void *value) +static gpointer +simple_duplicate_value (ETableModel *etm, gint col, gconstpointer value) { ETreeSimple *simple = E_TREE_SIMPLE(etm); if (simple->duplicate_value) return simple->duplicate_value (etm, col, value, simple->model_data); else - return (void *)value; + return (gpointer)value; } static void -simple_free_value (ETableModel *etm, int col, void *value) +simple_free_value (ETableModel *etm, gint col, gpointer value) { ETreeSimple *simple = E_TREE_SIMPLE(etm); @@ -59,8 +59,8 @@ simple_free_value (ETableModel *etm, int col, void *value) simple->free_value (etm, col, value, simple->model_data); } -static void * -simple_initialize_value (ETableModel *etm, int col) +static gpointer +simple_initialize_value (ETableModel *etm, gint col) { ETreeSimple *simple = E_TREE_SIMPLE(etm); @@ -71,7 +71,7 @@ simple_initialize_value (ETableModel *etm, int col) } static gboolean -simple_value_is_empty (ETableModel *etm, int col, const void *value) +simple_value_is_empty (ETableModel *etm, gint col, gconstpointer value) { ETreeSimple *simple = E_TREE_SIMPLE(etm); @@ -81,8 +81,8 @@ simple_value_is_empty (ETableModel *etm, int col, const void *value) return FALSE; } -static char * -simple_value_to_string (ETableModel *etm, int col, const void *value) +static gchar * +simple_value_to_string (ETableModel *etm, gint col, gconstpointer value) { ETreeSimple *simple = E_TREE_SIMPLE(etm); @@ -92,8 +92,8 @@ simple_value_to_string (ETableModel *etm, int col, const void *value) return g_strdup (""); } -static void * -simple_value_at (ETreeModel *etm, ETreePath *node, int col) +static gpointer +simple_value_at (ETreeModel *etm, ETreePath *node, gint col) { ETreeSimple *simple = E_TREE_SIMPLE(etm); @@ -109,7 +109,7 @@ simple_icon_at (ETreeModel *etm, ETreePath *node) } static void -simple_set_value_at (ETreeModel *etm, ETreePath *node, int col, const void *val) +simple_set_value_at (ETreeModel *etm, ETreePath *node, gint col, gconstpointer val) { ETreeSimple *simple = E_TREE_SIMPLE(etm); @@ -117,7 +117,7 @@ simple_set_value_at (ETreeModel *etm, ETreePath *node, int col, const void *val) } static gboolean -simple_is_editable (ETreeModel *etm, ETreePath *node, int col) +simple_is_editable (ETreeModel *etm, ETreePath *node, gint col) { ETreeSimple *simple = E_TREE_SIMPLE(etm); |