]> www.fi.muni.cz Git - evince.git/blobdiff - shell/main.c
Move the best fit items at the top of the list
[evince.git] / shell / main.c
index c162935e9cfb5a0b85f55dfd0413ebe3c2fd301d..b0a0b76a3afc5796b3ae6261fedeba931fecb1a6 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"
+#include "ev-file-helpers.h"
 
 static struct poptOption popt_options[] =
 {
@@ -79,13 +82,16 @@ 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");
 
        g_object_get_property (G_OBJECT (program),
                                GNOME_PARAM_POPT_CONTEXT,
@@ -96,7 +102,9 @@ main (int argc, char *argv[])
 
        gtk_main ();
 
+       gnome_accelerators_sync ();
        poptFreeContext (context);
+       ev_file_helpers_shutdown ();
 
        return 0;
 }