forked from AuroraMiddleware/gtk
Use GSlice for gtk_tree_iter_copy. Bug #434863.
2007-05-02 Christian Persch <chpe@gnome.org> * gtk/gtktreemodel.c: (gtk_tree_iter_copy), (gtk_tree_iter_free): Use GSlice for gtk_tree_iter_copy. Bug #434863. svn path=/trunk/; revision=17761
This commit is contained in:
parent
77c55d66ef
commit
5f7249557a
@ -1,3 +1,8 @@
|
|||||||
|
2007-05-02 Christian Persch <chpe@gnome.org>
|
||||||
|
|
||||||
|
* gtk/gtktreemodel.c: (gtk_tree_iter_copy), (gtk_tree_iter_free): Use
|
||||||
|
GSlice for gtk_tree_iter_copy. Bug #434863.
|
||||||
|
|
||||||
2007-05-02 Christian Persch <chpe@gnome.org>
|
2007-05-02 Christian Persch <chpe@gnome.org>
|
||||||
|
|
||||||
* gtk/gtkpapersize.c: (gtk_paper_size_get_paper_sizes): Put only
|
* gtk/gtkpapersize.c: (gtk_paper_size_get_paper_sizes): Put only
|
||||||
|
@ -864,7 +864,7 @@ gtk_tree_iter_copy (GtkTreeIter *iter)
|
|||||||
|
|
||||||
g_return_val_if_fail (iter != NULL, NULL);
|
g_return_val_if_fail (iter != NULL, NULL);
|
||||||
|
|
||||||
retval = g_new (GtkTreeIter, 1);
|
retval = g_slice_new (GtkTreeIter);
|
||||||
*retval = *iter;
|
*retval = *iter;
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
@ -882,7 +882,7 @@ gtk_tree_iter_free (GtkTreeIter *iter)
|
|||||||
{
|
{
|
||||||
g_return_if_fail (iter != NULL);
|
g_return_if_fail (iter != NULL);
|
||||||
|
|
||||||
g_free (iter);
|
g_slice_free (GtkTreeIter, iter);
|
||||||
}
|
}
|
||||||
|
|
||||||
GType
|
GType
|
||||||
|
Loading…
Reference in New Issue
Block a user