diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/box-test.c | 12 | ||||
-rw-r--r-- | test/textbox-test.c | 2 |
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 ); |