# HG changeset patch # User nenolod # Date 1169828530 28800 # Node ID 86777d94dc7a7834c1684718013e313e24a15a6e # Parent f0d65a33bf6422cd27d379bc62b6507be06fa808 [svn] - default settings for options.session diff -r f0d65a33bf64 -r 86777d94dc7a ChangeLog --- a/ChangeLog Fri Jan 26 07:37:53 2007 -0800 +++ b/ChangeLog Fri Jan 26 08:22:10 2007 -0800 @@ -1,3 +1,11 @@ +2007-01-26 15:37:53 +0000 William Pitcock + revision [3834] + - handle unknown options + + trunk/src/audacious/main.c | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + + 2007-01-26 15:32:55 +0000 William Pitcock revision [3832] - use GOption instead of getopt. diff -r f0d65a33bf64 -r 86777d94dc7a src/audacious/main.c --- a/src/audacious/main.c Fri Jan 26 07:37:53 2007 -0800 +++ b/src/audacious/main.c Fri Jan 26 08:22:10 2007 -0800 @@ -1027,6 +1027,9 @@ gtk_init_check_ok = gtk_init_check(&argc, &argv); + memset(&options, '\0', sizeof(BmpCmdLineOpt)); + options.session = -1; + context = g_option_context_new(_("- play multimedia files")); g_option_context_add_main_entries(context, cmd_entries, PACKAGE_NAME); g_option_context_add_group(context, gtk_get_option_group(TRUE));