summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-11-03 11:07:25 +0100
committerAndrea Canciani <ranma42@gmail.com>2011-11-09 09:17:00 +0100
commitb31da39f6f65d1784fc2f6915c30eb011cc2893b (patch)
tree59b48d79d1c59c7b1012c10766c9e0ceee4b8ac8
parent1662c94348eda19ec35db2625749febd1dceb35e (diff)
demos: Consistently use G_N_ELEMENTS()
Instead of open-coding G_N_ELEMENTS(), just use it.
-rw-r--r--demos/composite-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/composite-test.c b/demos/composite-test.c
index f5f352ff..bba90c52 100644
--- a/demos/composite-test.c
+++ b/demos/composite-test.c
@@ -123,7 +123,7 @@ main (int argc, char **argv)
table = gtk_table_new (G_N_ELEMENTS (operators) / 6, 6, TRUE);
src_img = pixman_image_create_linear_gradient (&p1, &p2, stops,
- sizeof (stops) / sizeof (stops[0]));
+ G_N_ELEMENTS (stops));
pixman_image_set_repeat (src_img, PIXMAN_REPEAT_PAD);