[gtk+/gtk-2-24] recentchooserdefault: Clean up load_id when we have nothing left to do



commit 491d79d54083044a5de3bfa2d7afe9cced3974f0
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Dec 4 15:08:25 2013 -0500

    recentchooserdefault: Clean up load_id when we have nothing left to do
    
    Returning FALSE from a GSourceFunc will implicitly remove it, so we need
    to do this in order to make the new g_source_remove happy.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779605

 gtk/gtkrecentchooserdefault.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkrecentchooserdefault.c b/gtk/gtkrecentchooserdefault.c
index 1ab48e2..f5f2dbd 100644
--- a/gtk/gtkrecentchooserdefault.c
+++ b/gtk/gtkrecentchooserdefault.c
@@ -849,6 +849,7 @@ load_recent_items (gpointer user_data)
       chooser_set_model (impl);
 
       retval = FALSE;
+      impl->load_id = 0;
     }
   else
     {


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