[gtk+/gtk-3-16] filechooser: Use same priority everywhere



commit b77c6b1b978a13ecafa33a5d51846f7c7cd6714e
Author: Benjamin Otte <otte redhat com>
Date:   Wed Mar 25 04:27:33 2015 +0100

    filechooser: Use same priority everywhere
    
    I managed to stall recent files today while trying to save a GTK
    testcase in glade that contained enough spinning spinners that the CPU
    was saturated just redrawing things.
    
    I had to navigate the filesystem!

 gtk/gtkfilechooserwidget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 6e4375c..f995cb1 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -6541,7 +6541,7 @@ recent_start_loading (GtkFileChooserWidget *impl)
   load_data->items = NULL;
 
   /* begin lazy loading the recent files into the model */
-  priv->load_recent_id = gdk_threads_add_idle_full (G_PRIORITY_HIGH_IDLE + 30,
+  priv->load_recent_id = gdk_threads_add_idle_full (G_PRIORITY_DEFAULT,
                                                     recent_idle_load,
                                                     load_data,
                                                     recent_idle_cleanup);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]