Mercurial > audlegacy
comparison src/audacious/main.c @ 2733:cf080b11c3fa trunk
[svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
author | magma |
---|---|
date | Fri, 11 May 2007 11:52:56 -0700 |
parents | 14f9a629ba9c |
children | 8249a1248a09 |
comparison
equal
deleted
inserted
replaced
2732:2227e8955391 | 2733:cf080b11c3fa |
---|---|
895 handle_cmd_line_options(BmpCmdLineOpt * options, | 895 handle_cmd_line_options(BmpCmdLineOpt * options, |
896 gboolean remote) | 896 gboolean remote) |
897 { | 897 { |
898 gchar **filenames = options->filenames; | 898 gchar **filenames = options->filenames; |
899 #ifdef HAVE_DBUS | 899 #ifdef HAVE_DBUS |
900 DBusGProxy *session = audacious_get_dbus_proxy(); | 900 // DBusGProxy *session = audacious_get_dbus_proxy(); |
901 #endif | 901 #endif |
902 | 902 |
903 if (options->version) | 903 if (options->version) |
904 { | 904 { |
905 dump_version(); | 905 dump_version(); |
1141 if (options.session != -1) { | 1141 if (options.session != -1) { |
1142 handle_cmd_line_options(&options, TRUE); | 1142 handle_cmd_line_options(&options, TRUE); |
1143 exit(EXIT_SUCCESS); | 1143 exit(EXIT_SUCCESS); |
1144 } | 1144 } |
1145 | 1145 |
1146 #ifdef USE_DBUS | |
1147 init_dbus(); | |
1148 #endif | |
1149 | |
1146 plugin_system_init(); | 1150 plugin_system_init(); |
1147 | 1151 |
1148 /* Initialize the playlist system. */ | 1152 /* Initialize the playlist system. */ |
1149 playlist_init(); | 1153 playlist_init(); |
1150 | 1154 |
1180 */ | 1184 */ |
1181 mainwin_setup_menus(); | 1185 mainwin_setup_menus(); |
1182 | 1186 |
1183 if (options.headless != 1) | 1187 if (options.headless != 1) |
1184 GDK_THREADS_LEAVE(); | 1188 GDK_THREADS_LEAVE(); |
1185 | |
1186 #ifdef USE_DBUS | |
1187 init_dbus(); | |
1188 #endif | |
1189 | 1189 |
1190 handle_cmd_line_options(&options, FALSE); | 1190 handle_cmd_line_options(&options, FALSE); |
1191 | 1191 |
1192 if (options.headless != 1) | 1192 if (options.headless != 1) |
1193 { | 1193 { |
1253 | 1253 |
1254 gtk_main(); | 1254 gtk_main(); |
1255 | 1255 |
1256 GDK_THREADS_LEAVE(); | 1256 GDK_THREADS_LEAVE(); |
1257 | 1257 |
1258 #ifdef USE_DBUS | |
1259 free_dbus(); | |
1260 #endif | |
1261 | |
1262 g_cond_free(cond_scan); | 1258 g_cond_free(cond_scan); |
1263 g_mutex_free(mutex_scan); | 1259 g_mutex_free(mutex_scan); |
1264 | 1260 |
1265 return EXIT_SUCCESS; | 1261 return EXIT_SUCCESS; |
1266 } | 1262 } |
1276 | 1272 |
1277 loop = g_main_loop_new(NULL, TRUE); | 1273 loop = g_main_loop_new(NULL, TRUE); |
1278 g_timeout_add(10, aud_headless_iteration, NULL); | 1274 g_timeout_add(10, aud_headless_iteration, NULL); |
1279 g_main_loop_run(loop); | 1275 g_main_loop_run(loop); |
1280 | 1276 |
1281 #ifdef USE_DBUS | |
1282 free_dbus(); | |
1283 #endif | |
1284 | |
1285 return EXIT_SUCCESS; | 1277 return EXIT_SUCCESS; |
1286 } | 1278 } |
1287 } | 1279 } |