]> www.fi.muni.cz Git - evince.git/commitdiff
Let tbe check file existence for us. Add a comment about eggrecent mime
authorMarco Pesenti Gritti <mpg@redhat.com>
Fri, 8 Jul 2005 09:21:56 +0000 (09:21 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Fri, 8 Jul 2005 09:21:56 +0000 (09:21 +0000)
2005-07-08  Marco Pesenti Gritti  <mpg@redhat.com>

        * shell/ev-application.c: (ev_application_init):

        Let tbe check file existence for us.
        Add a comment about eggrecent mime filter.

ChangeLog
shell/ev-application.c

index 7b79f7c5cccdded8b877341fd36afdd3c00b14b7..ae053b5d59e9fb021673cce02836c21da4d6f471 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-07-08  Marco Pesenti Gritti  <mpg@redhat.com>
+
+       * shell/ev-application.c: (ev_application_init):
+
+       Let tbe check file existence for us.
+       Add a comment about eggrecent mime filter.
+
 2005-07-08  Marco Pesenti Gritti  <mpg@redhat.com>
 
        * data/evince-ui.xml:
index 9048653f3fd4325a69303c1128c4c7d060ea44ed..6cbb149363b86e548b803025a48311bc84b7843d 100644 (file)
@@ -245,18 +245,19 @@ ev_application_init (EvApplication *ev_application)
        ev_application->toolbars_file = g_build_filename
                        (ev_dot_dir (), "evince_toolbar.xml", NULL);
 
-       if (!g_file_test (ev_application->toolbars_file, G_FILE_TEST_EXISTS)) {
+       if (!egg_toolbars_model_load (ev_application->toolbars_model,
+                                     ev_application->toolbars_file)) {
                egg_toolbars_model_load (ev_application->toolbars_model,
                                         DATADIR"/evince-toolbar.xml");
-       } else {
-               egg_toolbars_model_load (ev_application->toolbars_model,
-                                        ev_application->toolbars_file);
        }
 
        egg_toolbars_model_set_flags (ev_application->toolbars_model, 0,
                                      EGG_TB_MODEL_NOT_REMOVABLE); 
                                      
        ev_application->recent_model = egg_recent_model_new (EGG_RECENT_MODEL_SORT_MRU);
+       /* FIXME we should add a mime type filter but current eggrecent
+           has only a varargs style api which does not work well when
+          the list of mime types is dynamic */
        egg_recent_model_set_limit (ev_application->recent_model, 5);   
        egg_recent_model_set_filter_groups (ev_application->recent_model,
                                            "Evince", NULL);