Fixes #336286
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:
parent
9767345608
commit
83c0670baa
2 changed files with 14 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue