diff options
author | Martin Szulecki | 2010-01-03 16:42:54 +0100 |
---|---|---|
committer | Martin Szulecki | 2010-01-03 16:42:54 +0100 |
commit | 1baf32da6dee2e1ebbbc050b346ce7ba7f673789 (patch) | |
tree | 24182559fedd4f7ab607824d45947547f527c82e /src | |
parent | 16e7a98fe55cabf471e47fb0d8251eef6631d984 (diff) | |
download | sbmanager-1baf32da6dee2e1ebbbc050b346ce7ba7f673789.tar.gz sbmanager-1baf32da6dee2e1ebbbc050b346ce7ba7f673789.tar.bz2 |
Rather update page icons on any gui_set_current_page call
Diffstat (limited to 'src')
-rw-r--r-- | src/sbmanager.c | 7 |
1 files 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); } |