aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-tree-sorted.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2006-09-18 21:06:49 +0800
committerHarish Krishnaswamy <kharish@src.gnome.org>2006-09-18 21:06:49 +0800
commit7a205fe6d0eb35f5fea8485fcb67f70d9d6446f7 (patch)
treeae2856e35bc84ed4736c3d98a709b94ebb8f0d38 /widgets/table/e-tree-sorted.c
parent6a807f9488adba7c10573e6eaa28030e9c9cb222 (diff)
downloadgsoc2013-evolution-7a205fe6d0eb35f5fea8485fcb67f70d9d6446f7.tar.gz
gsoc2013-evolution-7a205fe6d0eb35f5fea8485fcb67f70d9d6446f7.tar.zst
gsoc2013-evolution-7a205fe6d0eb35f5fea8485fcb67f70d9d6446f7.zip
** Fixes bug #352450
2006-08-23 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #352450 * misc/e-canvas-background.c: * misc/e-cursors.c: * misc/e-map.c: * misc/e-reflow.c: * misc/e-task-widget.c: * misc/gal-combo-box.c: * table/e-cell-text.c: * table/e-cell-toggle.c: * table/e-table-field-chooser-item.c: * table/e-table-field-chooser.c: * table/e-table-header-item.c: * table/e-table-header-utils.c: * table/e-table-item.c: * table/e-table.c: * table/e-tree-memory.c: * table/e-tree-sorted.c: * table/e-tree.c: * table/e-text.c: Replace deprecated GLib and GDK function calls. svn path=/trunk/; revision=32783
Diffstat (limited to 'widgets/table/e-tree-sorted.c')
-rw-r--r--widgets/table/e-tree-sorted.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/widgets/table/e-tree-sorted.c b/widgets/table/e-tree-sorted.c
index 56af65dd7d..b5c67dc906 100644
--- a/widgets/table/e-tree-sorted.c
+++ b/widgets/table/e-tree-sorted.c
@@ -47,12 +47,9 @@
/* maximum insertions between an idle event that we will do without scheduling an idle sort */
#define ETS_INSERT_MAX (4)
-#define TREEPATH_CHUNK_AREA_SIZE (30 * sizeof (ETreeSortedPath))
-
#define d(x)
static ETreeModel *parent_class;
-static GMemChunk *node_chunk;
enum {
NODE_RESORTED,
@@ -365,7 +362,7 @@ static void
free_path (ETreeSortedPath *path)
{
free_children(path);
- g_chunk_free(path, node_chunk);
+ g_slice_free(ETreeSortedPath, path);
}
static ETreeSortedPath *
@@ -373,7 +370,7 @@ new_path (ETreeSortedPath *parent, ETreePath corresponding)
{
ETreeSortedPath *path;
- path = g_chunk_new0 (ETreeSortedPath, node_chunk);
+ path = g_slice_new0 (ETreeSortedPath);
path->corresponding = corresponding;
path->parent = parent;
@@ -1157,8 +1154,6 @@ e_tree_sorted_class_init (ETreeSortedClass *klass)
parent_class = g_type_class_peek_parent (klass);
- node_chunk = g_mem_chunk_create (ETreeSortedPath, TREEPATH_CHUNK_AREA_SIZE, G_ALLOC_AND_FREE);
-
klass->node_resorted = NULL;
object_class->dispose = ets_dispose;