summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2015-07-28 22:22:18 +0200
committerDave Davenport <qball@gmpclient.org>2015-07-28 22:22:18 +0200
commit93c01ccbd55497d1f70aef447d7a0aa04e7ecf57 (patch)
treeb80df6cc9e025523f6e52a3a67fa30e6343b20fb /test
parentb3a77589eb4210058e7ecda66eb8d6996d5bdf9c (diff)
Add new event handling
Diffstat (limited to 'test')
-rw-r--r--test/helper-test.c11
-rw-r--r--test/textbox-test.c10
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;