GNOME Bugzilla – Bug 335032
[PATCH] Use GOption instead of popt
Last modified: 2006-05-09 06:21:03 UTC
what the summary says. It will also fix bug 320390
Created attachment 61508 [details] [review] patch
While you're at it, you should add g_object_unref(program) after gtk_main() before the end of main(), and g_strfreev the remaining_args :)
"context = g_option_context_new ("");", shouldn't a comment be used? "description = g_strdup_printf ("- %s", _("Directly edit your entire configuration database")); context = g_option_context_new (description); g_free (description);" if you want to use the Comment= from the .desktop translated
I also made a patch(see #320390). which is best? :) I like to introduce --key foo so we can add extra options in the future
Marking needs-work based on Christian's comments.
Thanks for the patch. I applied a mix of them. 2006-05-09 Fernando Herrera <fherrera@onirica.com> * configure.in: * src/main.c: (main): Port to GOption. Patches and code from Paolo Borelli, Christian Persch and Kristof Vansant. Fixes bugs #335032 and #320390.