-#if WITH_GNOME
- program = gnome_program_init (PACKAGE, VERSION,
- LIBGNOMEUI_MODULE, argc, argv,
- GNOME_PARAM_GOPTION_CONTEXT, context,
- GNOME_PARAM_HUMAN_READABLE_NAME, _("Evince"),
- GNOME_PARAM_APP_DATADIR, GNOMEDATADIR,
- NULL);
-#else
+ context = g_option_context_new (N_("GNOME Document Viewer"));
+ g_option_context_set_translation_domain(context, GETTEXT_PACKAGE);
+ g_option_context_add_main_entries (context, goption_options, GETTEXT_PACKAGE);
+
+ g_option_context_add_group (context, egg_sm_client_get_option_group ());