From 60e377346812a56cf39720c64eeca8989863c29e Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Wed, 16 Mar 2011 15:19:41 +0100 Subject: [PATCH] Little change to a test. --- tests/test_rptreport_creation.c | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/tests/test_rptreport_creation.c b/tests/test_rptreport_creation.c index f2156af..63498fd 100644 --- a/tests/test_rptreport_creation.c +++ b/tests/test_rptreport_creation.c @@ -68,7 +68,7 @@ main (int argc, char **argv) stroke.style = NULL; g_object_set (obj, "size", &size, - "stroke", &stroke, + "stroke", &stroke, NULL); rpt_report_add_object_to_section (rptr, obj, RPTREPORT_SECTION_BODY); @@ -81,7 +81,7 @@ main (int argc, char **argv) stroke.style = NULL; g_object_set (obj, "size", &size, - "stroke", &stroke, + "stroke", &stroke, NULL); rpt_report_add_object_to_section (rptr, obj, RPTREPORT_SECTION_BODY); @@ -93,7 +93,7 @@ main (int argc, char **argv) stroke.color = rpt_common_parse_color ("#000000AA"); g_object_set (obj, "size", &size, - "stroke", &stroke, + "stroke", &stroke, NULL); rpt_report_add_object_to_section (rptr, obj, RPTREPORT_SECTION_BODY); @@ -107,8 +107,19 @@ main (int argc, char **argv) stroke.style = NULL; g_object_set (obj, "size", &size, - "stroke", &stroke, - "fill-color", color, + "stroke", &stroke, + "fill-color", color, + NULL); + rpt_report_add_object_to_section (rptr, obj, RPTREPORT_SECTION_BODY); + + point.x = 50; + point.y = 200; + obj = rpt_obj_image_new ("image1", point); + size.width = 100; + size.height = 100; + g_object_set (obj, + "size", &size, + "source", "gnome-globe.png", NULL); rpt_report_add_object_to_section (rptr, obj, RPTREPORT_SECTION_BODY); -- 2.49.0