1 /*
2 *******************************************************************************
3 *
4 * © 2016 and later: Unicode, Inc. and others.
5 * License & terms of use: http://www.unicode.org/copyright.html
6 *
7 *******************************************************************************
8 *******************************************************************************
9 *
10 * Copyright (C) 1999-2001, International Business Machines
11 * Corporation and others. All Rights Reserved.
12 *
13 *******************************************************************************
14 * file name: GnomeGUISupport.cpp
15 *
16 * created on: 11/06/2001
17 * created by: Eric R. Mader
18 */
19
20 #if 1
21 #include <gnome.h>
22 #else
23 #include <stdio.h>
24 #endif
25
26 #include "GnomeGUISupport.h"
27
postErrorMessage(const char * message,const char * title)28 void GnomeGUISupport::postErrorMessage(const char *message, const char *title)
29 {
30 #if 1
31 gchar *s;
32 GtkWidget *error;
33
34 s = g_strconcat(title, ":\n", message, NULL);
35 error = gnome_error_dialog(s);
36 gtk_widget_show(error);
37 g_free(s);
38 #else
39 fprintf(stderr, "%s: %s\n", title, message);
40 #endif
41 }
42
43
44