summaryrefslogtreecommitdiff
path: root/src/ui/sidebarwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r--src/ui/sidebarwidget.c6
1 files changed, 3 insertions, 3 deletions
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) {
123 break; 123 break;
124 } 124 }
125 case bookmarks_SidebarMode: { 125 case bookmarks_SidebarMode: {
126 iConstForEach(PtrArray, i, list_Bookmarks(bookmarks_App(), NULL, cmpTitle_Bookmark_)) { 126 iConstForEach(PtrArray, i, list_Bookmarks(bookmarks_App(), cmpTitle_Bookmark_, NULL, NULL)) {
127 const iBookmark *bm = i.ptr; 127 const iBookmark *bm = i.ptr;
128 iSidebarItem *item = new_SidebarItem(); 128 iSidebarItem *item = new_SidebarItem();
129 item->id = id_Bookmark(bm); 129 item->id = id_Bookmark(bm);
@@ -749,16 +749,16 @@ static void draw_SidebarWidget_(const iSidebarWidget *d) {
749 749
750static void draw_SidebarItem_(const iSidebarItem *d, iPaint *p, iRect itemRect, 750static void draw_SidebarItem_(const iSidebarItem *d, iPaint *p, iRect itemRect,
751 const iListWidget *list) { 751 const iListWidget *list) {
752 const int font = uiContent_FontId;
752 const iSidebarWidget *sidebar = findParentClass_Widget(constAs_Widget(list), 753 const iSidebarWidget *sidebar = findParentClass_Widget(constAs_Widget(list),
753 &Class_SidebarWidget); 754 &Class_SidebarWidget);
754 const iBool isPressing = isMouseDown_ListWidget(list); 755 const iBool isPressing = isMouseDown_ListWidget(list);
755 const int font = uiContent_FontId;
756 const iBool isHover = 756 const iBool isHover =
757 isHover_Widget(constAs_Widget(list)) && constHoverItem_ListWidget(list) == d; 757 isHover_Widget(constAs_Widget(list)) && constHoverItem_ListWidget(list) == d;
758 const int itemHeight = height_Rect(itemRect); 758 const int itemHeight = height_Rect(itemRect);
759 const int iconColor = 759 const int iconColor =
760 isHover ? (isPressing ? uiTextPressed_ColorId : uiIconHover_ColorId) : uiIcon_ColorId; 760 isHover ? (isPressing ? uiTextPressed_ColorId : uiIconHover_ColorId) : uiIcon_ColorId;
761 if (isHover) /* && !d->listItem.isSeparator)*/ { 761 if (isHover) {
762 fillRect_Paint(p, 762 fillRect_Paint(p,
763 itemRect, 763 itemRect,
764 isPressing ? uiBackgroundPressed_ColorId 764 isPressing ? uiBackgroundPressed_ColorId