comparison 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
comparison
equal deleted inserted replaced
2937:d9a4d56b6081 2938:1cdfc508d758
1128 textdomain(PACKAGE_NAME); 1128 textdomain(PACKAGE_NAME);
1129 1129
1130 bmp_init_paths(); 1130 bmp_init_paths();
1131 bmp_make_user_dir(); 1131 bmp_make_user_dir();
1132 1132
1133 /* Check GTK version. Really, this is only needed for binary
1134 * distribution since configure already checks. */
1135 if (!GTK_CHECK_VERSION(2, 6, 0)) {
1136 g_printerr(_("Sorry, your GTK+ version (%d.%d.%d) does not work with Audacious.\n"
1137 "Please use GTK+ %s or newer.\n"),
1138 gtk_major_version, gtk_minor_version, gtk_micro_version,
1139 "2.6.0");
1140 exit(EXIT_FAILURE);
1141 }
1142
1143 g_set_application_name(_(application_name)); 1133 g_set_application_name(_(application_name));
1144 1134
1145 cond_scan = g_cond_new(); 1135 cond_scan = g_cond_new();
1146 mutex_scan = g_mutex_new(); 1136 mutex_scan = g_mutex_new();
1147 1137
1157 g_option_context_add_group(context, gtk_get_option_group(TRUE)); 1147 g_option_context_add_group(context, gtk_get_option_group(TRUE));
1158 g_option_context_parse(context, &argc, &argv, &error); 1148 g_option_context_parse(context, &argc, &argv, &error);
1159 1149
1160 if (error != NULL) 1150 if (error != NULL)
1161 { 1151 {
1162 g_printerr(_("%s: %s\nTry `%s --help' for more information.\n"), argv[0], error->message, argv[0]); 1152 g_printerr(_("%s: %s\nTry `%s --help' for more information.\n"),
1153 argv[0], error->message, argv[0]);
1163 exit(EXIT_FAILURE); 1154 exit(EXIT_FAILURE);
1164 } 1155 }
1165 1156
1166 if (!gtk_init_check_ok) { 1157 if (!gtk_init_check_ok) {
1167 if (argc < 2) { 1158 if (argc < 2) {
1174 1165
1175 handle_cmd_line_options(&options, TRUE); 1166 handle_cmd_line_options(&options, TRUE);
1176 1167
1177 /* we could be running headless, so GTK probably wont matter */ 1168 /* we could be running headless, so GTK probably wont matter */
1178 if (options.headless != 1) 1169 if (options.headless != 1)
1179 exit(EXIT_SUCCESS); 1170 exit(EXIT_SUCCESS);
1180 } 1171 }
1181 1172
1182 if (options.no_log == FALSE) 1173 if (options.no_log == FALSE)
1183 bmp_setup_logger(); 1174 bmp_setup_logger();
1184 1175