[gnumeric] Fixed build with glib older than 2.30



commit 81d9e7010c4263d1a2b1d9aebb2d7d4f3dfb014a
Author: Jean Brefort <jean brefort normalesup org>
Date:   Mon Sep 10 21:34:40 2012 +0200

    Fixed build with glib older than 2.30

 src/gnm-so-path.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gnm-so-path.c b/src/gnm-so-path.c
index 4a0522d..767ae57 100644
--- a/src/gnm-so-path.c
+++ b/src/gnm-so-path.c
@@ -256,7 +256,8 @@ gnm_so_path_new_view (SheetObject *so, SheetObjectViewContainer *container)
 		                           "fill-rule", TRUE,
 		                           NULL);
 	else {
-		item->paths = g_ptr_array_new_full (sop->paths->len, g_object_unref);
+		item->paths = g_ptr_array_sized_new (sop->paths->len);
+		g_ptr_array_set_free_func (item->paths, g_object_unref);
 		for (i = 0; i < sop->paths->len; i++)
 			g_ptr_array_add (item->paths,
 				             goc_item_new (GOC_GROUP (item),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]