diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/helper-test.c | 4 | ||||
-rw-r--r-- | test/textbox-test.c | 10 |
2 files changed, 6 insertions, 8 deletions
diff --git a/test/helper-test.c b/test/helper-test.c index e02e63d9..48a12a75 100644 --- a/test/helper-test.c +++ b/test/helper-test.c @@ -32,9 +32,9 @@ int show_error_message ( const char *msg, int markup ) rofi_view_error_dialog ( msg, markup ); return 0; } -xcb_screen_t *xcb_screen; +xcb_screen_t *xcb_screen; xcb_ewmh_connection_t xcb_ewmh; -int xcb_screen_nbr; +int xcb_screen_nbr; #include <x11-helper.h> int main ( int argc, char ** argv ) diff --git a/test/textbox-test.c b/test/textbox-test.c index 0c4fc572..c9f9f962 100644 --- a/test/textbox-test.c +++ b/test/textbox-test.c @@ -24,9 +24,8 @@ unsigned int normal_window_mode = 0; void rofi_view_queue_redraw () { } -Color color_get (const char *name) +Color color_get ( const char *name ) { - } void rofi_view_error_dialog ( const char *msg, G_GNUC_UNUSED int markup ) @@ -46,9 +45,9 @@ int show_error_message ( const char *msg, int markup ) int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv ) { - cairo_surface_t *surf = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 100, 100); - cairo_t *draw = cairo_create(surf); - PangoContext *p = pango_cairo_create_context ( draw ); + cairo_surface_t *surf = cairo_image_surface_create ( CAIRO_FORMAT_ARGB32, 100, 100 ); + cairo_t *draw = cairo_create ( surf ); + 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, @@ -129,5 +128,4 @@ int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv ) textbox_free ( box ); textbox_cleanup ( ); - } |