Home | History | Annotate | Download | only in layout
      1 /*
      2  *******************************************************************************
      3  *
      4  *   Copyright (C) 1999-2001, International Business Machines
      5  *   Corporation and others.  All Rights Reserved.
      6  *
      7  *******************************************************************************
      8  *   file name:  GnomeGUISupport.cpp
      9  *
     10  *   created on: 11/06/2001
     11  *   created by: Eric R. Mader
     12  */
     13 
     14 #if 1
     15 #include <gnome.h>
     16 #else
     17 #include <stdio.h>
     18 #endif
     19 
     20 #include "GnomeGUISupport.h"
     21 
     22 void GnomeGUISupport::postErrorMessage(const char *message, const char *title)
     23 {
     24 #if 1
     25   gchar *s;
     26   GtkWidget *error;
     27 
     28   s = g_strconcat(title, ":\n", message, NULL);
     29   error = gnome_error_dialog(s);
     30   gtk_widget_show(error);
     31   g_free(s);
     32 #else
     33    fprintf(stderr, "%s: %s\n", title, message);
     34 #endif
     35 }
     36 
     37 
     38