CVS libcroco 0.6.1 patch



I have found a sort of bug while compiling libcroco with jhbuild , the
FTP version of the package seems ok. That's why I'm sending it here.

cheers.
arkaino

--
<!-- http://arkaino.blogspot.com -->
--- src/cr-rgb.c.orig	2006-11-15 08:56:32.000000000 -0300
+++ src/cr-rgb.c	2006-11-15 08:57:04.000000000 -0300
@@ -465,14 +465,14 @@
 
         g_return_val_if_fail (a_this && a_color_name, CR_BAD_PARAM_ERROR);
 
-        for (i = 0; i < G_NR_ELEMENTS (gv_standard_colors); i++) {
+        for (i = 0; i < G_N_ELEMENTS (gv_standard_colors); i++) {
                 if (!strcmp (a_color_name, gv_standard_colors[i].name)) {
                         cr_rgb_set_from_rgb (a_this, &gv_standard_colors[i]);
                         break;
                 }
         }
 
-        if (i < G_NR_ELEMENTS (gv_standard_colors))
+        if (i < G_N_ELEMENTS (gv_standard_colors))
                 status = CR_OK;
         else
                status = CR_UNKNOWN_TYPE_ERROR;


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