cheese r1109 - in branches/gnome-2-24: . src
- From: dgsiegel svn gnome org
- To: svn-commits-list gnome org
- Subject: cheese r1109 - in branches/gnome-2-24: . src
- Date: Mon, 13 Oct 2008 19:55:08 +0000 (UTC)
Author: dgsiegel
Date: Mon Oct 13 19:55:08 2008
New Revision: 1109
URL: http://svn.gnome.org/viewvc/cheese?rev=1109&view=rev
Log:
remove the unwanted string and enhance the previous patch
Modified:
branches/gnome-2-24/ChangeLog
branches/gnome-2-24/src/cheese.c
Modified: branches/gnome-2-24/src/cheese.c
==============================================================================
--- branches/gnome-2-24/src/cheese.c (original)
+++ branches/gnome-2-24/src/cheese.c Mon Oct 13 19:55:08 2008
@@ -182,7 +182,9 @@
g_option_context_add_group (context, gtk_get_option_group (TRUE));
g_option_context_add_group (context, gst_init_get_option_group ());
if (g_option_context_parse (context, &argc, &argv, &error) == FALSE) {
- g_print (_("%s\nRun '%s --help' to see a full list of available command line options.\n"), error->message, argv[0]);
+ gchar *help_text = g_option_context_get_help (context, TRUE, NULL);
+ g_print ("%s", help_text);
+ g_free (help_text);
g_error_free (error);
g_option_context_free (context);
return -1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]