talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit ff80e86cbd9340c0368b6094e060d55bbc97cae2
parent d9ece0c2071862f33836294d1421fa9feb3ad9ac
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Tue, 16 Oct 2018 18:18:40 +0200

Do not redraw focus of GtkCMCList if the row is unchanged in move_focus_row();

Diffstat:
Msrc/gtk/gtkcmclist.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/gtk/gtkcmclist.c b/src/gtk/gtkcmclist.c @@ -6955,8 +6955,13 @@ move_focus_row (GtkCMCList *clist, case GTK_SCROLL_JUMP: if (position >= 0 && position <= 1) { + gint row = position * (clist->rows - 1); + + if (row == clist->focus_row) + return; + gtk_cmclist_undraw_focus (widget); - clist->focus_row = position * (clist->rows - 1); + clist->focus_row = row; gtk_cmclist_draw_focus (widget); } break;