summaryrefslogtreecommitdiffstats
path: root/test/textbox-test.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-01-09 16:22:09 +0100
committerDave Davenport <qball@gmpclient.org>2016-01-09 16:22:09 +0100
commitd7dab65e5b89f2a223fba00c62accee2d5313609 (patch)
treeb1eb366a352f7ff07672c09d351fb98986fe367a /test/textbox-test.c
parent06c7f30b7e39775698ab241583adb0b23d4ac4bd (diff)
Making widget class, moving stuff around
Diffstat (limited to 'test/textbox-test.c')
-rw-r--r--test/textbox-test.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/textbox-test.c b/test/textbox-test.c
index 46883fcd..47a5c83d 100644
--- a/test/textbox-test.c
+++ b/test/textbox-test.c
@@ -11,6 +11,7 @@
#include <textbox.h>
#include <rofi.h>
+#include <cairo-xlib.h>
#include "settings.h"
static int test = 0;
@@ -169,9 +170,9 @@ int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv )
textbox_font ( box, HIGHLIGHT );
textbox_draw ( box, draw );
- textbox_move ( box, 12, 13 );
- TASSERT ( box->x == 12 );
- TASSERT ( box->y == 13 );
+ widget_move ( WIDGET(box), 12, 13 );
+ TASSERT ( box->widget.x == 12 );
+ TASSERT ( box->widget.y == 13 );
textbox_free ( box );
textbox_cleanup ( );