[gtk+] gtktextbtree: use g_slice
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtktextbtree: use g_slice
- Date: Sun, 25 Dec 2011 16:47:57 +0000 (UTC)
commit 359d8c98565f21ca22aeb45c5a5c8ed0a120320c
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sun Dec 25 17:49:03 2011 +0100
gtktextbtree: use g_slice
gtk/gtktextbtree.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c
index cd6d808..2757c8c 100644
--- a/gtk/gtktextbtree.c
+++ b/gtk/gtktextbtree.c
@@ -4720,7 +4720,7 @@ gtk_text_line_new (void)
{
GtkTextLine *line;
- line = g_new0(GtkTextLine, 1);
+ line = g_slice_new0 (GtkTextLine);
line->dir_strong = PANGO_DIRECTION_NEUTRAL;
line->dir_propagated_forward = PANGO_DIRECTION_NEUTRAL;
line->dir_propagated_back = PANGO_DIRECTION_NEUTRAL;
@@ -4751,7 +4751,7 @@ gtk_text_line_destroy (GtkTextBTree *tree, GtkTextLine *line)
ld = next;
}
- g_free (line);
+ g_slice_free (GtkTextLine, line);
}
static void
@@ -4862,7 +4862,7 @@ gtk_text_btree_node_new (void)
{
GtkTextBTreeNode *node;
- node = g_new (GtkTextBTreeNode, 1);
+ node = g_slice_new (GtkTextBTreeNode);
node->node_data = NULL;
@@ -5513,7 +5513,7 @@ gtk_text_btree_node_free_empty (GtkTextBTree *tree,
summary_list_destroy (node->summary);
node_data_list_destroy (node->node_data);
- g_free (node);
+ g_slice_free (GtkTextBTreeNode, node);
}
static NodeData*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]