[gnome-panel] [panel] Do not limit the initial unhide timeout to initial load



commit 7fb83c6776dc864f02945ac944869e12876342e8
Author: Vincent Untz <vuntz gnome org>
Date:   Mon Sep 6 19:51:31 2010 +0200

    [panel] Do not limit the initial unhide timeout to initial load
    
    There's no reason to limit the initial unhide timeout of toplevels to
    the initial load: a panel created later (with a script that would also
    populate it with applets) could also have applets that fail to load. So
    we need a timeout there too.
    
    Instead, just don't add the timeout if we already have one.

 gnome-panel/applet.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-panel/applet.c b/gnome-panel/applet.c
index 26b6490..86f02e2 100644
--- a/gnome-panel/applet.c
+++ b/gnome-panel/applet.c
@@ -908,7 +908,7 @@ panel_applet_load_idle_handler (gpointer dummy)
 	}
 
 	if (!l) {
-		/* All the rest of the applets don't have a panel */
+		/* All the remaining applets don't have a panel */
 		for (l = panel_applets_to_load; l; l = l->next)
 			free_applet_to_load (l->data);
 		g_slist_free (panel_applets_to_load);
@@ -1063,7 +1063,7 @@ panel_applet_load_queued_applets (gboolean initial_load)
 		return;
 	}
 
-	if (initial_load && panel_applets_to_load) {
+	if (panel_applets_to_load && panel_applet_unhide_toplevels_timeout == 0) {
 		/* Install a timeout to make sure we don't block the
 		 * unhiding because of an applet that doesn't load */
 		panel_applet_unhide_toplevels_timeout =



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