]> git.saurik.com Git - apple/icu.git/blame - icuSources/samples/layout/GnomeGUISupport.cpp
ICU-62107.0.1.tar.gz
[apple/icu.git] / icuSources / samples / layout / GnomeGUISupport.cpp
CommitLineData
b75a7d8f 1/*
f3c0d7a5
A
2 *******************************************************************************
3 *
4 * © 2016 and later: Unicode, Inc. and others.
5 * License & terms of use: http://www.unicode.org/copyright.html#License
6 *
7 *******************************************************************************
b75a7d8f
A
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
28void 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