summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-12-16 09:28:13 +0100
committerDave Davenport <qball@gmpclient.org>2016-12-16 09:28:13 +0100
commitb8e58b0342d267fc88a4649b45bc702ed82e91ab (patch)
treeca87a7b019081f4d9776c17a04700dc0e7e040f7 /test
parentefd1e07755c7e6b2f3e66eed73fc4c932851d529 (diff)
Make parser more flexible, allow global properties to be anywhere in file and allow multiple similar entries.
Diffstat (limited to 'test')
-rw-r--r--test/box-test.c12
-rw-r--r--test/textbox-test.c2
2 files changed, 7 insertions, 7 deletions
diff --git a/test/box-test.c b/test/box-test.c
index b9283d44..ce4d0b31 100644
--- a/test/box-test.c
+++ b/test/box-test.c
@@ -31,8 +31,8 @@ static gboolean test_widget_clicked ( G_GNUC_UNUSED widget *wid, G_GNUC_UNUSED x
int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv )
{
{
- box *b = box_create ( BOX_HORIZONTAL, 0, 0, 100, 20 );
- box_set_padding ( b, 5 );
+ box *b = box_create ( "box", BOX_HORIZONTAL, 0, 0, 100, 20 );
+ //box_set_padding ( b, 5 );
widget *wid1 = g_malloc0(sizeof(widget));
box_add ( b , WIDGET( wid1 ), TRUE, FALSE );
@@ -92,8 +92,8 @@ int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv )
widget_free ( WIDGET ( b ) );
}
{
- box *b = box_create ( BOX_VERTICAL, 0, 0, 20, 100 );
- box_set_padding ( b, 5 );
+ box *b = box_create ( "box", BOX_VERTICAL, 0, 0, 20, 100 );
+ //box_set_padding ( b, 5 );
widget *wid1 = g_malloc0(sizeof(widget));
box_add ( b , WIDGET( wid1 ), TRUE, FALSE );
@@ -152,8 +152,8 @@ int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv )
widget_free ( WIDGET ( b ) );
}
{
- box *b = box_create ( BOX_VERTICAL, 0, 0, 20, 100 );
- box_set_padding ( b, 5 );
+ box *b = box_create ( "box", BOX_VERTICAL, 0, 0, 20, 100 );
+ //box_set_padding ( b, 5 );
widget *wid1 = g_malloc0(sizeof(widget));
widget_enable(wid1);
wid1->clicked = test_widget_clicked;
diff --git a/test/textbox-test.c b/test/textbox-test.c
index 3fa33344..3196ab0e 100644
--- a/test/textbox-test.c
+++ b/test/textbox-test.c
@@ -53,7 +53,7 @@ int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv )
PangoContext *p = pango_cairo_create_context ( draw );
textbox_set_pango_context ( p );
- textbox *box = textbox_create ( TB_EDITABLE | TB_AUTOWIDTH | TB_AUTOHEIGHT, 0, 0, -1, -1,
+ textbox *box = textbox_create ( "textbox", TB_EDITABLE | TB_AUTOWIDTH | TB_AUTOHEIGHT, 0, 0, -1, -1,
NORMAL, "test" );
TASSERT ( box != NULL );