totem r5316 - in trunk: . src



Author: pwithnall
Date: Tue Mar 25 15:20:18 2008
New Revision: 5316
URL: http://svn.gnome.org/viewvc/totem?rev=5316&view=rev

Log:
2008-03-25  Philip Withnall  <pwithnall svn gnome org>

	* src/totem.c: (main): Patch from Krzysztof Kotlenga
	<piernik gmail com> to fix a crash on an unrecognised command 
line.
	(Closes: #522070)



Modified:
   trunk/ChangeLog
   trunk/src/totem.c

Modified: trunk/src/totem.c
==============================================================================
--- trunk/src/totem.c	(original)
+++ trunk/src/totem.c	Tue Mar 25 15:20:18 2008
@@ -3114,7 +3114,10 @@
 #ifdef HAVE_GTK_ONLY
 	g_option_context_add_group (context, gtk_get_option_group (TRUE));
 	if (g_option_context_parse (context, &argc, &argv, &error) == FALSE) {
-		totem_action_error_and_exit (_("Totem could not parse the command-line options"), error->message, NULL);
+		g_print (_("%s\nRun '%s --help' to see a full list of available command line options.\n"),
+				error->message, argv[0]);
+		g_error_free (error);
+		totem_action_exit (NULL);
 	}
 #else
 	program = gnome_program_init (PACKAGE, VERSION,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]