diff src/audacious/main.c @ 2938:1cdfc508d758 trunk

Fix adding files when Audacious is running. A fix to start Audacious with a file will follow. Aditionally, some old, useless XMMS stuff was removed.
author Jonathan Schleifer <js@h3c.de>
date Fri, 29 Jun 2007 15:52:26 +0200
parents 22c940e0d2dc
children 83f03505f819
line wrap: on
line diff
--- a/src/audacious/main.c	Fri Jun 29 08:40:23 2007 -0500
+++ b/src/audacious/main.c	Fri Jun 29 15:52:26 2007 +0200
@@ -1130,16 +1130,6 @@
     bmp_init_paths();
     bmp_make_user_dir();
 
-    /* Check GTK version. Really, this is only needed for binary
-     * distribution since configure already checks. */
-    if (!GTK_CHECK_VERSION(2, 6, 0)) {
-        g_printerr(_("Sorry, your GTK+ version (%d.%d.%d) does not work with Audacious.\n"
-                     "Please use GTK+ %s or newer.\n"),
-                   gtk_major_version, gtk_minor_version, gtk_micro_version,
-                   "2.6.0");
-        exit(EXIT_FAILURE);
-    }
-
     g_set_application_name(_(application_name));
 
     cond_scan = g_cond_new();
@@ -1159,7 +1149,8 @@
 
     if (error != NULL)
     {
-        g_printerr(_("%s: %s\nTry `%s --help' for more information.\n"), argv[0], error->message, argv[0]);
+        g_printerr(_("%s: %s\nTry `%s --help' for more information.\n"),
+	  argv[0], error->message, argv[0]);
         exit(EXIT_FAILURE);
     }
 
@@ -1176,7 +1167,7 @@
 
         /* we could be running headless, so GTK probably wont matter */
         if (options.headless != 1)
-          exit(EXIT_SUCCESS);
+            exit(EXIT_SUCCESS);
     }
 
     if (options.no_log == FALSE)