summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui.c b/src/gui.c
index d0cd371..ec17ffb 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -92,6 +92,8 @@ ClutterTimeline *clock_timeline = NULL;
GMutex *selected_mutex = NULL;
SBItem *selected_item = NULL;
+SBItem *selected_folder = NULL;
+
ClutterActor *folder_marker = NULL;
ClutterActor *aniupper = NULL;
@@ -889,6 +891,8 @@ static gboolean folderview_close_finish(gpointer user_data)
clutter_actor_set_reactive(item->texture, TRUE);
+ selected_folder = NULL;
+
return FALSE;
}
@@ -941,6 +945,8 @@ static void folderview_open(SBItem *item)
gboolean is_dock_folder = FALSE;
+ selected_folder = item;
+
/* dim the springboard icons */
for (i = 0; i < g_list_length(page); i++) {
it = g_list_nth_data(page, i);
@@ -1619,6 +1625,10 @@ static gboolean gui_pages_init_cb(gpointer user_data)
icons_loaded = 0;
total_icons = 0;
+ if (selected_folder) {
+ folderview_close_finish(selected_folder);
+ }
+
pages_free();
/* connect to sbservices */