]> Pileus Git - ~andy/gtk/commitdiff
Using GSlice for GtkTreePath
authorPhilip Van Hoof <pvanhoof@gnome.org>
Mon, 31 Dec 2007 11:26:55 +0000 (11:26 +0000)
committerPhilip Van Hoof <pvanhoof@src.gnome.org>
Mon, 31 Dec 2007 11:26:55 +0000 (11:26 +0000)
2007-12-31  Philip Van Hoof  <pvanhoof@gnome.org>

        * gtk/gtktreemodel.c: Using GSlice for GtkTreePath

svn path=/trunk/; revision=19292

ChangeLog
gtk/gtktreemodel.c

index 28c5c20d5c0ad0688b1f64258554ec0aa3f58477..d790a88db6e16e5e4270c68b11de01eb1a6763b9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-12-31  Philip Van Hoof  <pvanhoof@gnome.org>
+
+        * gtk/gtktreemodel.c: Using GSlice for GtkTreePath
+
 2007-12-31  Christian Persch  <chpe@gnome.org>
 
        * gtk/gtkprintunixdialog.c: (gtk_print_unix_dialog_get_property):
index 2f8294b62111b87a411bdf19f3698da276253b77..d6fe4c22079d1dff1cabfbeaee3e8262dc7ad236 100644 (file)
@@ -389,7 +389,7 @@ GtkTreePath *
 gtk_tree_path_new (void)
 {
   GtkTreePath *retval;
-  retval = g_new (GtkTreePath, 1);
+  retval = g_slice_new (GtkTreePath);
   retval->depth = 0;
   retval->indices = NULL;
 
@@ -632,7 +632,7 @@ gtk_tree_path_free (GtkTreePath *path)
     return;
 
   g_free (path->indices);
-  g_free (path);
+  g_slice_free (GtkTreePath, path);
 }
 
 /**
@@ -650,7 +650,7 @@ gtk_tree_path_copy (const GtkTreePath *path)
 
   g_return_val_if_fail (path != NULL, NULL);
 
-  retval = g_new (GtkTreePath, 1);
+  retval = g_slice_new (GtkTreePath);
   retval->depth = path->depth;
   retval->indices = g_new (gint, path->depth);
   memcpy (retval->indices, path->indices, path->depth * sizeof (gint));