GNOME Bugzilla – Bug 336077
port from popt to GOption
Last modified: 2006-08-02 11:44:55 UTC
As described on http://live.gnome.org/GnomeGoals/PoptGOption, making the desktop using GOption would be nice, patch coming
Created attachment 62037 [details] [review] popt to GOption
From attachment 62037 [details] [review]: >+ context = g_option_context_new (_("Keyring Manager")); I think that the parameter of g_option_context_new () is intended to put the application arguments (if any), and not the application name, because that string will be displayed after "Usage: gnome-keyring-manager [OPTION...]" and Usage: gnome-keyring-manager [OPTION...] Keyring Manager Is not the right way to use the program. Maybe a dash before the application name would be enough, but I would simply pass NULL.
Created attachment 62043 [details] [review] patch updated according to comment good point, most of other patches for GOption (cf wiki page) do the same, updating the wiki page with a note about that could be useful
I filed a bug in glib regarding this parameter. I will add a dependence on it.
Thanks a lot. committed to HEAD: 2006-08-02 Fernando Herrera <fherrera@onirica.com> * src/gnome-keyring-manager.c: (main): Port to GOption API. Patch by Sebastien Bacher. Closes bug #336077