diff src/audacious/pluginenum.c @ 4325:309e8f970517

removed report_error() and reimplemented some error routines
author mf0102 <0102@gmx.at>
date Thu, 13 Mar 2008 16:31:48 +0100
parents fec498c745f6
children 51b7809c2d87
line wrap: on
line diff
--- a/src/audacious/pluginenum.c	Thu Mar 13 01:43:19 2008 +0300
+++ b/src/audacious/pluginenum.c	Thu Mar 13 16:31:48 2008 +0100
@@ -32,8 +32,9 @@
 #endif
 
 #include <glib.h>
+#include <glib/gi18n.h>
+#include <glib/gprintf.h>
 #include <gmodule.h>
-#include <glib/gprintf.h>
 #include <string.h>
 
 #include "main.h"
@@ -806,10 +807,18 @@
     InputPlugin *ip;
     LowlevelPlugin *lp;
     DiscoveryPlugin *dp;
+    GtkWidget *dialog;
     gint dirsel = 0, i = 0;
 
     if (!g_module_supported()) {
-        report_error("Module loading not supported! Plugins will not be loaded.\n");
+        dialog =
+            gtk_message_dialog_new (GTK_WINDOW (mainwin),
+                                    GTK_DIALOG_DESTROY_WITH_PARENT,
+                                    GTK_MESSAGE_ERROR,
+                                    GTK_BUTTONS_CLOSE,
+                                    _("Module loading not supported! Plugins will not be loaded.\n"));
+        gtk_dialog_run (GTK_DIALOG (dialog));
+        gtk_widget_destroy (dialog);
         return;
     }