diff options
Diffstat (limited to 'mate-dictionary/src/gdict-app.c')
-rw-r--r-- | mate-dictionary/src/gdict-app.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mate-dictionary/src/gdict-app.c b/mate-dictionary/src/gdict-app.c index 9ed518ec..6c5f228f 100644 --- a/mate-dictionary/src/gdict-app.c +++ b/mate-dictionary/src/gdict-app.c @@ -1,4 +1,5 @@ /* Copyright (C) 2005 Emmanuele Bassi + * Copyright (C) 2012-2021 MATE Developers * * This file is part of MATE Utils. * @@ -36,17 +37,13 @@ static GdictApp *singleton = NULL; - struct _GdictAppClass { GObjectClass parent_class; }; - - G_DEFINE_TYPE (GdictApp, gdict_app, G_TYPE_OBJECT); - static void gdict_app_finalize (GObject *object) { @@ -330,7 +327,7 @@ gdict_init (int *argc, char ***argv) N_("Database to use"), N_("db") }, { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_STRING_ARRAY, &lookup_words, N_("Words to look up"), N_("word") }, - { NULL }, + { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }, }; g_assert (singleton == NULL); @@ -341,7 +338,9 @@ gdict_init (int *argc, char ***argv) /* create the new option context */ context = g_option_context_new (_(" - Look up words in dictionaries")); +#ifdef ENABLE_NLS g_option_context_set_translation_domain (context, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ g_option_context_add_main_entries (context, gdict_app_goptions, GETTEXT_PACKAGE); g_option_context_add_group (context, gdict_get_option_group ()); g_option_context_add_group (context, gtk_get_option_group (TRUE)); @@ -356,6 +355,7 @@ gdict_init (int *argc, char ***argv) exit (1); } + g_option_context_free (context); g_set_application_name (_("Dictionary")); gtk_window_set_default_icon_name ("accessories-dictionary"); |