[gnome-panel/bonobo-less] [panel] Make sure that newly-created panels become unhidden
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/bonobo-less] [panel] Make sure that newly-created panels become unhidden
- Date: Wed, 26 May 2010 15:01:54 +0000 (UTC)
commit 1f823129dc3b9c8d4c5b5b46f9efe9a93793b9d4
Author: Vincent Untz <vuntz gnome org>
Date: Wed May 26 17:00:24 2010 +0200
[panel] Make sure that newly-created panels become unhidden
The patch from a7412dfa introduces a bug where new panels will never get
notified that they should start doing their initial animation; they'll
always stay hidden.
gnome-panel/applet.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/gnome-panel/applet.c b/gnome-panel/applet.c
index 25872e4..1b1c272 100644
--- a/gnome-panel/applet.c
+++ b/gnome-panel/applet.c
@@ -1042,18 +1042,18 @@ panel_applet_compare (const PanelAppletToLoad *a,
void
panel_applet_load_queued_applets (gboolean initial_load)
{
- if (initial_load) {
- if (!panel_applets_to_load) {
- panel_applet_queue_initial_unhide_toplevels (NULL);
- return;
- } else {
- /* 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 =
- g_timeout_add_seconds (UNHIDE_TOPLEVELS_TIMEOUT_SECONDS,
- panel_applet_queue_initial_unhide_toplevels,
- NULL);
- }
+ if (!panel_applets_to_load) {
+ panel_applet_queue_initial_unhide_toplevels (NULL);
+ return;
+ }
+
+ if (initial_load && panel_applets_to_load) {
+ /* 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 =
+ g_timeout_add_seconds (UNHIDE_TOPLEVELS_TIMEOUT_SECONDS,
+ panel_applet_queue_initial_unhide_toplevels,
+ NULL);
}
panel_applets_to_load = g_slist_sort (panel_applets_to_load,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]