GNOME Bugzilla – Bug 336610
[PATCH] Convert from popt to GOption
Last modified: 2006-03-31 12:02:07 UTC
For GNOME Goals (http://live.gnome.org/GnomeGoals/PoptGOption). A couple notes: * I left in the configure requirement/check for popt because we export popt options in the public bonobo-activation-init.h header. * Should we mark the exported 'bonobo_activation_popt_options' as deprecated? * It looks like utils/bonobo-activate.c isn't used. I converted it, but it isn't built. A candidate for cvs remove?
Created attachment 62386 [details] [review] Proposed patch
+++ activation-server/activation-server-main.c "od-source-dir" looks like it should use G_OPTION_ARG_FILENAME instead of STRING. +++ activation-server/client.c Same for "add-path", "remove-path". +++ utils/bonobo-activation-sysconf.c add_directory callback gets a filename (G_OPTION_FLAG_FILENAME used), but searched for it in and adds the directory to the XML document without charset conversion... (also the function doesn't handle doc==NULL correctly, but that's outside the scope of this bug). m.m. for remove_directory.
Michael - patch looks like a lovely cleanuup - thanks for that ! :-) Lets bin utils/bonobo-activate.c as you suggest. With chpe's fixes - can you commit to HEAD ?
Committed to HEAD with chpe's fixes.