X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=inline;f=shell%2Fmain.c;h=b0a0b76a3afc5796b3ae6261fedeba931fecb1a6;hb=ba33ad17ac72e6383eae5fec2974480e4ae892f7;hp=6cd14e882b1cdc55d42038177d30ae648871d948;hpb=1c0d19bd22598eca159c3febdcdaf4168891cb8f;p=evince.git diff --git a/shell/main.c b/shell/main.c index 6cd14e88..b0a0b76a 100644 --- a/shell/main.c +++ b/shell/main.c @@ -26,11 +26,13 @@ #include #include #include +#include #include #include "ev-stock-icons.h" #include "ev-debug.h" #include "ev-job-queue.h" +#include "ev-file-helpers.h" static struct poptOption popt_options[] = { @@ -80,12 +82,13 @@ main (int argc, char *argv[]) LIBGNOMEUI_MODULE, argc, argv, GNOME_PARAM_POPT_TABLE, popt_options, GNOME_PARAM_HUMAN_READABLE_NAME, _("Evince"), - GNOME_PARAM_APP_DATADIR, DATADIR, + GNOME_PARAM_APP_DATADIR, GNOMEDATADIR, NULL); ev_job_queue_init (); g_set_application_name (_("Evince Document Viewer")); + ev_file_helpers_init (); ev_debug_init (); ev_stock_icons_init (); gtk_window_set_default_icon_name ("postscript-viewer"); @@ -99,7 +102,9 @@ main (int argc, char *argv[]) gtk_main (); + gnome_accelerators_sync (); poptFreeContext (context); + ev_file_helpers_shutdown (); return 0; }