summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-07-18 23:21:08 +0200
committerGravatar Nikias Bassen2010-07-18 23:21:08 +0200
commit43140a089d73b7415f052fad0b57bb7172f12e9d (patch)
tree5950a405af96175ca0b28a983363ab75b81d68a4 /src
parent3afa5bf6011e8a1ca528384ee679ccf312452ecf (diff)
downloadsbmanager-43140a089d73b7415f052fad0b57bb7172f12e9d.tar.gz
sbmanager-43140a089d73b7415f052fad0b57bb7172f12e9d.tar.bz2
Add selected_folder state variable and close folderview on reload
Diffstat (limited to 'src')
-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 */