aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/gtk-compat.h
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-07-22 20:08:45 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-07-22 20:10:19 +0800
commit1a8f315db5d40623aebec3808eb41db1ccc15b6b (patch)
treefd847f94f568734939622c1ddf0c5da49d63b028 /e-util/gtk-compat.h
parent28ce96706f736691c43dd04ec308cf0f2595d351 (diff)
downloadgsoc2013-evolution-1a8f315db5d40623aebec3808eb41db1ccc15b6b.tar.gz
gsoc2013-evolution-1a8f315db5d40623aebec3808eb41db1ccc15b6b.tar.zst
gsoc2013-evolution-1a8f315db5d40623aebec3808eb41db1ccc15b6b.zip
Bug 624525 - Variable name collision in gtk-compat macro
Diffstat (limited to 'e-util/gtk-compat.h')
-rw-r--r--e-util/gtk-compat.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/e-util/gtk-compat.h b/e-util/gtk-compat.h
index 3e531b2b1f..7dc61f3a84 100644
--- a/e-util/gtk-compat.h
+++ b/e-util/gtk-compat.h
@@ -53,15 +53,15 @@
#define gdk_region_get_rectangles(region, rectangles, n_rectangles) \
G_STMT_START { \
GdkRectangle *__rects; \
- gint __i, __n; \
+ gint __i, __nrects; \
\
- __n = cairo_region_num_rectangles (region); \
- __rects = g_new (GdkRectangle, __n); \
+ __nrects = cairo_region_num_rectangles (region); \
+ __rects = g_new (GdkRectangle, __nrects); \
\
- for (__i = 0; __i < __n; __i++) \
+ for (__i = 0; __i < __nrects; __i++) \
cairo_region_get_rectangle ((region), __i, &__rects[__i]); \
\
- *(n_rectangles) = __n; \
+ *(n_rectangles) = __nrects; \
*(rectangles) = __rects; \
} G_STMT_END