GNU standards require "file name" instead of "filename" in
[pspp-builds.git] / src / ui / gui / message-dialog.c
index c9ca4a1c57099cbe0ca8881f70347b4769de529d..693db49f70f2a9ddd1dcfd281b8d6a8820a0f5bd 100644 (file)
@@ -26,6 +26,7 @@
 #include <config.h>
 #include <libpspp/message.h>
 #include "message-dialog.h"
+#include "progname.h"
 
 
 #include <gtk/gtk.h>
@@ -52,7 +53,6 @@ vmsg(int klass, const char *fmt, va_list args)
   switch (klass)
     {
     case SE:
-    case IE:
     case DE:
     case ME:
       message_type = GTK_MESSAGE_ERROR;
@@ -63,7 +63,6 @@ vmsg(int klass, const char *fmt, va_list args)
       message_type = GTK_MESSAGE_WARNING;
       break;
     case SM:
-    case IS:
     case MM:
     default:
       message_type = GTK_MESSAGE_INFO;
@@ -78,11 +77,6 @@ vmsg(int klass, const char *fmt, va_list args)
       msg = g_strdup(_("Script Error"));
       break;
 
-    case IE:
-    case IS:
-      msg = g_strdup(_("Installation Error"));
-      break;
-
     case DE:
     case DW:
       msg = g_strdup(_("Data File Error"));
@@ -141,29 +135,21 @@ err_assert_fail(const char *expr, const char *file, int line)
   msg(ME, "Assertion failed: %s:%d; (%s)\n",file,line,expr);
 }
 
-/* The GUI is always interactive.
-   So this function does nothing */
-void 
-err_cond_fail(void)
-{
-}
-
-
+/* Writes MESSAGE formatted with printf, to stderr, if the
+   verbosity level is at least LEVEL. */
 void
-err_failure(void)
+verbose_msg (int level, const char *format, ...)
 {
-  msg(ME, _("Terminating NOW due to fatal error"));
-  gtk_main_quit();
+  /* Do nothing for now. */
 }
 
-
 /* FIXME: This is a stub .
  * A temporary workaround until getl.c is rearranged
  */
 void
 err_location (struct file_locator *f)
 {
-       f->filename = 0;
+       f->file_name = 0;
        f->line_number = -1;
 }