diff options
author | 2013-10-17 19:58:42 +0200 | |
---|---|---|
committer | 2013-10-17 20:09:48 +0200 | |
commit | 89e8afc9cb96878052fe80aab7faa7d467943e04 (patch) | |
tree | bb393c225adf0f260e77c994c104df24bad71b6e /plugins | |
parent | dc707a1f6d57105f9a81289ad113f1a33e9c7e79 (diff) |
gtkui: fixed rendering of grouptitle when groups are pinned
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gtkui/ddblistview.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gtkui/ddblistview.c b/plugins/gtkui/ddblistview.c index 0073a4c8..f4c34917 100644 --- a/plugins/gtkui/ddblistview.c +++ b/plugins/gtkui/ddblistview.c @@ -737,7 +737,7 @@ ddb_listview_list_render (DdbListview *listview, cairo_t *cr, int x, int y, int ddb_listview_list_render_row_background (listview, cr, it, (idx + 1 + i) & 1, (abs_idx+i) == listview->binding->cursor () ? 1 : 0, -listview->hscrollpos, grp_y + listview->grouptitle_height + i * listview->rowheight - listview->scrollpos, listview->totalwidth, listview->rowheight); ddb_listview_list_render_row_foreground (listview, cr, it, grp->head, (idx + 1 + i) & 1, (idx+i) == listview->binding->cursor () ? 1 : 0, i * listview->rowheight, grp->height, grp->pinned, grp_next_y - listview->scrollpos, -listview->hscrollpos, grp_y + listview->grouptitle_height + i * listview->rowheight - listview->scrollpos, listview->totalwidth, listview->rowheight); } - if (grp->pinned == 1 && gtkui_groups_pinned) { + if (grp->pinned == 1 && gtkui_groups_pinned && y <= 0) { ddb_listview_list_render_row_background (listview, cr, NULL, group_idx & 1, 0, -listview->hscrollpos, y, listview->totalwidth, listview->grouptitle_height); if (listview->binding->draw_group_title && listview->grouptitle_height > 0) { listview->binding->draw_group_title (listview, cr, it, -listview->hscrollpos, y - pushback, listview->totalwidth, listview->grouptitle_height); @@ -773,7 +773,7 @@ ddb_listview_list_render (DdbListview *listview, cairo_t *cr, int x, int y, int cairo_fill (cr); } ddb_listview_list_render_row_foreground (listview, cr, NULL, grp->head, 0, 0, grp->num_items * listview->rowheight, grp->height, grp->pinned, grp_next_y - listview->scrollpos, -listview->hscrollpos, grp_y - listview->scrollpos + listview->grouptitle_height + listview->rowheight * grp->num_items, listview->totalwidth, filler); - if (grp->pinned == 1 && gtkui_groups_pinned) { + if (grp->pinned == 1 && gtkui_groups_pinned && y <= 0) { ddb_listview_list_render_row_background (listview, cr, NULL, group_idx & 1, 0, -listview->hscrollpos, y, listview->totalwidth, listview->grouptitle_height); if (listview->binding->draw_group_title && listview->grouptitle_height > 0) { listview->binding->draw_group_title (listview, cr, prev, -listview->hscrollpos, y - pushback, listview->totalwidth, listview->grouptitle_height); |