summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-09-06 07:38:40 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-09-06 07:38:40 +0300
commit8d249e27e6dda6423af93aa4368a81b13cd3f451 (patch)
tree42acf435b08c0ad90c669c87984c47aa1b785f5b /src
parente1eb4b1296bcd9964cb6edf6823fea4b3f9b9677 (diff)
Cleanup
Diffstat (limited to 'src')
-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) {