diff options
author | Dave Davenport <qball@gmpclient.org> | 2015-07-28 22:22:18 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2015-07-28 22:22:18 +0200 |
commit | 93c01ccbd55497d1f70aef447d7a0aa04e7ecf57 (patch) | |
tree | b80df6cc9e025523f6e52a3a67fa30e6343b20fb /test | |
parent | b3a77589eb4210058e7ecda66eb8d6996d5bdf9c (diff) |
Add new event handling
Diffstat (limited to 'test')
-rw-r--r-- | test/helper-test.c | 11 | ||||
-rw-r--r-- | test/textbox-test.c | 10 |
2 files changed, 21 insertions, 0 deletions
diff --git a/test/helper-test.c b/test/helper-test.c index 15bd2def..2a22929f 100644 --- a/test/helper-test.c +++ b/test/helper-test.c @@ -10,6 +10,17 @@ static int test = 0; assert ( a ); \ printf ( "Test %i passed (%s)\n", ++test, # a ); \ } + +void error_dialog ( const char *msg, G_GNUC_UNUSED int markup ) +{ + fputs ( msg, stderr ); +} + +void show_error_message ( const char *msg, int markup ) +{ + error_dialog ( msg, markup ); +} + int main ( int argc, char ** argv ) { cmd_set_arguments ( argc, argv ); diff --git a/test/textbox-test.c b/test/textbox-test.c index b9de109c..9180565a 100644 --- a/test/textbox-test.c +++ b/test/textbox-test.c @@ -24,6 +24,16 @@ Display *display = NULL; Colormap map = None; XVisualInfo vinfo; +void error_dialog ( const char *msg, G_GNUC_UNUSED int markup ) +{ + fputs ( msg, stderr ); +} + +void show_error_message ( const char *msg, int markup ) +{ + error_dialog ( msg, markup ); +} + static unsigned int color_get ( Display *display, const char *const name ) { XColor color; |