commit 5ac91d89dca0a8e957165342b652ede11b611d15
parent 8d7751e7ee2b6d70361de610a891b7d9a86fc524
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:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/gtk/gtkcmclist.c b/src/gtk/gtkcmclist.c
@@ -6967,8 +6967,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;