2007-01-06  Lucas Rocha <lucasr.at.mundo@gmail.com>

	Fixes #336286

	* gnome-mouse-properties.c (main): switched from popt to GOptionContext.

svn path=/trunk/; revision=7057
This commit is contained in:
Lucas Rocha 2007-01-06 18:55:07 +00:00 committed by Rodrigo Moya
parent 9767345608
commit 83c0670baa
2 changed files with 14 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2007-01-06 Lucas Rocha <lucasr.at.mundo@gmail.com>
Fixes #336286
* gnome-mouse-properties.c (main): switched from popt to GOptionContext.
2006-10-16 Rodrigo Moya <rodrigo@novell.com>
Fixes #163690

View file

@ -1029,21 +1029,25 @@ main (int argc, char **argv)
GConfChangeSet *changeset;
GladeXML *dialog;
GtkWidget *dialog_win;
GOptionContext *context;
static gboolean get_legacy;
static struct poptOption cap_options[] = {
{ "get-legacy", '\0', POPT_ARG_NONE, &get_legacy, 0,
static GOptionEntry cap_options[] = {
{ "get-legacy", 0, 0, G_OPTION_ARG_NONE, &get_legacy,
N_("Retrieve and store legacy settings"), NULL },
{ NULL, '\0', 0, NULL, 0, NULL, NULL }
{ NULL }
};
bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
context = g_option_context_new (_("- GNOME Mouse Preferences"));
g_option_context_add_main_entries (context, cap_options, GETTEXT_PACKAGE);
gnome_program_init ("gnome-mouse-properties", VERSION,
LIBGNOMEUI_MODULE, argc, argv,
GNOME_PARAM_POPT_TABLE, cap_options,
GNOME_PARAM_GOPTION_CONTEXT, context,
GNOME_PARAM_APP_DATADIR, GNOMECC_DATA_DIR,
NULL);