2001-11-07 23:48:17 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
|
|
|
*
|
|
|
|
* Copyright (C) 1999-2001, International Business Machines
|
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*
|
|
|
|
*******************************************************************************
|
2002-03-14 22:27:32 +00:00
|
|
|
* file name: GnomeGUISupport.cpp
|
2001-11-07 23:48:17 +00:00
|
|
|
*
|
|
|
|
* created on: 11/06/2001
|
|
|
|
* created by: Eric R. Mader
|
|
|
|
*/
|
|
|
|
|
2002-03-14 22:27:32 +00:00
|
|
|
#if 1
|
|
|
|
#include <gnome.h>
|
|
|
|
#else
|
2001-11-07 23:48:17 +00:00
|
|
|
#include <stdio.h>
|
2002-03-14 22:27:32 +00:00
|
|
|
#endif
|
2001-11-07 23:48:17 +00:00
|
|
|
|
|
|
|
#include "GnomeGUISupport.h"
|
|
|
|
|
|
|
|
void GnomeGUISupport::postErrorMessage(const char *message, const char *title)
|
|
|
|
{
|
2002-03-14 22:27:32 +00:00
|
|
|
#if 1
|
|
|
|
gchar *s;
|
|
|
|
GtkWidget *error;
|
|
|
|
|
|
|
|
s = g_strconcat(title, ":\n", message, NULL);
|
|
|
|
error = gnome_error_dialog(s);
|
|
|
|
gtk_widget_show(error);
|
|
|
|
g_free(s);
|
|
|
|
#else
|
|
|
|
fprintf(stderr, "%s: %s\n", title, message);
|
|
|
|
#endif
|
2001-11-07 23:48:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|