From 1baf32da6dee2e1ebbbc050b346ce7ba7f673789 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Sun, 3 Jan 2010 16:42:54 +0100 Subject: Rather update page icons on any gui_set_current_page call --- src/sbmanager.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/sbmanager.c b/src/sbmanager.c index bb3cad8..eb8c075 100644 --- a/src/sbmanager.c +++ b/src/sbmanager.c @@ -723,6 +723,9 @@ static void gui_set_current_page(int pageindex) if ((pageindex < 0) || (pageindex >= count)) return; + /* make sure the page has correct aligned icons */ + gui_page_align_icons(pageindex, FALSE); + current_page = pageindex; gui_page_indicator_group_align(); @@ -732,15 +735,11 @@ static void gui_set_current_page(int pageindex) static void gui_show_next_page() { - /* make sure the page has correct aligned icons */ - gui_page_align_icons(current_page+1, FALSE); gui_set_current_page(current_page+1); } static void gui_show_previous_page() { - /* make sure the page has correct aligned icons */ - gui_page_align_icons(current_page-1, FALSE); gui_set_current_page(current_page-1); } -- cgit v1.1-32-gdbae