Mercurial > audlegacy
diff audacious/main.c @ 781:12c47704b4b5 trunk
[svn] Add error reporting for many places, patch by external contributor Derek
Pomery (nemo @ #audacious). Additional cleanups too.
author | nenolod |
---|---|
date | Thu, 02 Mar 2006 08:14:36 -0800 |
parents | 3787176f9875 |
children | c8cf439179b8 |
line wrap: on
line diff
--- a/audacious/main.c Thu Mar 02 08:00:29 2006 -0800 +++ b/audacious/main.c Thu Mar 02 08:14:36 2006 -0800 @@ -98,6 +98,7 @@ typedef struct _BmpCmdLineOpt BmpCmdLineOpt; +BmpCmdLineOpt options; BmpConfig cfg; @@ -901,10 +902,20 @@ gtk_widget_destroy(dialog); } +// use a format string? +void report_error(const gchar *error_text) +{ + fprintf(stderr,error_text); + if (options.headless!=1) { + gtk_message_dialog_format_secondary_text(err,error_text); + gtk_dialog_run(GTK_DIALOG(err)); + gtk_widget_hide(GTK_WIDGET(err)); + } +} + gint main(gint argc, gchar ** argv) { - BmpCmdLineOpt options; gboolean gtk_init_check_ok; /* Setup l10n early so we can print localized error messages */ @@ -977,11 +988,13 @@ if (options.headless != 1) { + bmp_set_default_icon(); gtk_accel_map_load(bmp_paths[BMP_PATH_ACCEL_FILE]); mainwin_create(); + playlistwin_create(); equalizerwin_create();