From a364d9456dfdfd8181904fca6308e9c36eefd10a Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sun, 6 Sep 2020 22:45:15 +0300 Subject: LookupWidget: Keyboard focus and cursor --- src/ui/sidebarwidget.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ui/sidebarwidget.c') diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index e84967cc..3b02f85c 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c @@ -123,7 +123,7 @@ static void updateItems_SidebarWidget_(iSidebarWidget *d) { break; } case bookmarks_SidebarMode: { - iConstForEach(PtrArray, i, list_Bookmarks(bookmarks_App(), NULL, cmpTitle_Bookmark_)) { + iConstForEach(PtrArray, i, list_Bookmarks(bookmarks_App(), cmpTitle_Bookmark_, NULL, NULL)) { const iBookmark *bm = i.ptr; iSidebarItem *item = new_SidebarItem(); item->id = id_Bookmark(bm); @@ -749,16 +749,16 @@ static void draw_SidebarWidget_(const iSidebarWidget *d) { static void draw_SidebarItem_(const iSidebarItem *d, iPaint *p, iRect itemRect, const iListWidget *list) { + const int font = uiContent_FontId; const iSidebarWidget *sidebar = findParentClass_Widget(constAs_Widget(list), &Class_SidebarWidget); const iBool isPressing = isMouseDown_ListWidget(list); - const int font = uiContent_FontId; const iBool isHover = isHover_Widget(constAs_Widget(list)) && constHoverItem_ListWidget(list) == d; const int itemHeight = height_Rect(itemRect); const int iconColor = isHover ? (isPressing ? uiTextPressed_ColorId : uiIconHover_ColorId) : uiIcon_ColorId; - if (isHover) /* && !d->listItem.isSeparator)*/ { + if (isHover) { fillRect_Paint(p, itemRect, isPressing ? uiBackgroundPressed_ColorId -- cgit v1.2.3