[Commits] [SCM] claws branch, master, updated. 3.17.0-121-gff80e86

ticho at claws-mail.org ticho at claws-mail.org
Tue Oct 16 18:19:20 CEST 2018


The branch, master has been updated
       via  ff80e86cbd9340c0368b6094e060d55bbc97cae2 (commit)
      from  d9ece0c2071862f33836294d1421fa9feb3ad9ac (commit)

Summary of changes:
 src/gtk/gtkcmclist.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit ff80e86cbd9340c0368b6094e060d55bbc97cae2
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Tue Oct 16 18:18:40 2018 +0200

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

diff --git a/src/gtk/gtkcmclist.c b/src/gtk/gtkcmclist.c
index a72e155..3009e39 100644
--- 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;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list