[Xfce4-commits] <thunar:master> Make loading priority in shortcuts model higher.

Nick Schermer noreply at xfce.org
Sun Oct 28 22:10:01 CET 2012


Updating branch refs/heads/master
         to 7ce73470cdf253f82042ee312bfae48580c7c1e8 (commit)
       from 4d7dbab1cd09b9383c23215bae391a6fce8a5863 (commit)

commit 7ce73470cdf253f82042ee312bfae48580c7c1e8
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Oct 28 22:08:12 2012 +0100

    Make loading priority in shortcuts model higher.
    
    This avoid the visible loading of the bookmarks and devices.

 thunar/thunar-shortcuts-model.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/thunar/thunar-shortcuts-model.c b/thunar/thunar-shortcuts-model.c
index c117227..804fdc1 100644
--- a/thunar/thunar-shortcuts-model.c
+++ b/thunar/thunar-shortcuts-model.c
@@ -271,7 +271,7 @@ thunar_shortcuts_model_init (ThunarShortcutsModel *model)
                    G_OBJECT (model), "hidden-bookmarks");
 
   /* load volumes */
-  model->devices_monitor_idle_id = g_idle_add (thunar_shortcuts_model_devices_load, model);
+  model->devices_monitor_idle_id = g_idle_add_full (G_PRIORITY_DEFAULT, thunar_shortcuts_model_devices_load, model, NULL);
 
   /* add network */
   thunar_shortcuts_model_shortcut_network (model);
@@ -935,7 +935,7 @@ thunar_shortcuts_model_shortcut_places (ThunarShortcutsModel *model)
     }
 
   /* read the Gtk+ bookmarks file */
-  model->bookmarks_idle_id = g_idle_add (thunar_shortcuts_model_load, model);
+  model->bookmarks_idle_id = g_idle_add_full (G_PRIORITY_DEFAULT, thunar_shortcuts_model_load, model, NULL);
 
   g_object_unref (home);
 }


More information about the Xfce4-commits mailing list