]> www.fi.muni.cz Git - evince.git/blobdiff - shell/main.c
actually remove the job.
[evince.git] / shell / main.c
index 86450d4d85e6cf847dfb29645b97b3699a41bbe6..321334b03d93a59de197dd2da2fc1651adfc21e9 100644 (file)
 #include <gtk/gtkmain.h>
 #include <libgnome/gnome-program.h>
 #include <libgnomeui/gnome-ui-init.h>
+#include <libgnomeui/gnome-app-helper.h>
 #include <libgnomevfs/gnome-vfs-utils.h>
 
 #include "ev-stock-icons.h"
 #include "ev-debug.h"
+#include "ev-job-queue.h"
 
 static struct poptOption popt_options[] =
 {
@@ -79,9 +81,10 @@ 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_debug_init ();
@@ -97,6 +100,7 @@ main (int argc, char *argv[])
 
        gtk_main ();
 
+       gnome_accelerators_sync ();
        poptFreeContext (context);
 
        return 0;