summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui/sidebarwidget.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c
index 57562cab..50b8ef9b 100644
--- a/src/ui/sidebarwidget.c
+++ b/src/ui/sidebarwidget.c
@@ -104,10 +104,6 @@ static int cmpTitle_Bookmark_(const iBookmark **a, const iBookmark **b) {
104 return cmpStringCase_String(&(*a)->title, &(*b)->title); 104 return cmpStringCase_String(&(*a)->title, &(*b)->title);
105} 105}
106 106
107static void updateVisible_SidebarWidget_(iSidebarWidget *d) {
108 updateVisible_ListWidget(d->list);
109}
110
111static void updateItems_SidebarWidget_(iSidebarWidget *d) { 107static void updateItems_SidebarWidget_(iSidebarWidget *d) {
112 clear_ListWidget(d->list); 108 clear_ListWidget(d->list);
113 destroy_Widget(d->menu); 109 destroy_Widget(d->menu);
@@ -246,7 +242,7 @@ static void updateItems_SidebarWidget_(iSidebarWidget *d) {
246 default: 242 default:
247 break; 243 break;
248 } 244 }
249 updateVisible_SidebarWidget_(d); 245 updateVisible_ListWidget(d->list);
250 invalidate_ListWidget(d->list); 246 invalidate_ListWidget(d->list);
251} 247}
252 248
@@ -459,8 +455,8 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev)
459 iWidget *w = as_Widget(d); 455 iWidget *w = as_Widget(d);
460 /* Handle commands. */ 456 /* Handle commands. */
461 if (isResize_UserEvent(ev)) { 457 if (isResize_UserEvent(ev)) {
462 updateVisible_SidebarWidget_(d);
463 checkModeButtonLayout_SidebarWidget_(d); 458 checkModeButtonLayout_SidebarWidget_(d);
459 updateVisible_ListWidget(d->list);
464 invalidate_ListWidget(d->list); 460 invalidate_ListWidget(d->list);
465 } 461 }
466 else if (ev->type == SDL_USEREVENT && ev->user.code == command_UserEventCode) { 462 else if (ev->type == SDL_USEREVENT && ev->user.code == command_UserEventCode) {