[Commits] [SCM] claws branch, gtk3, updated. 3.99.0-72-g6417ca7fc
paul at claws-mail.org
paul at claws-mail.org
Wed Apr 14 12:43:31 CEST 2021
The branch, gtk3 has been updated
via 6417ca7fcb7ed8be27cd4226f8ce270e30745e80 (commit)
from 82e4f441ccb495c05ba1b8292f1a224de6cf3f67 (commit)
Summary of changes:
src/gtk/gtkcmctree.c | 21 +--------------------
1 file changed, 1 insertion(+), 20 deletions(-)
- Log -----------------------------------------------------------------
commit 6417ca7fcb7ed8be27cd4226f8ce270e30745e80
Author: paul <paul at claws-mail.org>
Date: Wed Apr 14 11:43:25 2021 +0100
fix bug 4466, 'slow message list scrolling'
reverts 7626388b45d8bd87b2f78cd89f76b52e9116bf7c
diff --git a/src/gtk/gtkcmctree.c b/src/gtk/gtkcmctree.c
index 5ea0628f1..69580d525 100644
--- a/src/gtk/gtkcmctree.c
+++ b/src/gtk/gtkcmctree.c
@@ -599,8 +599,6 @@ draw_row (GtkCMCList *clist,
static GdkColor greybg={0, 0, 0, 0};
static gboolean color_change = TRUE;
cairo_t *cr;
- cairo_t *cr_hw;
- cairo_surface_t *image_surface;
GdkColor *fgcolor, *bgcolor;
cm_return_if_fail (clist != NULL);
@@ -669,12 +667,7 @@ draw_row (GtkCMCList *clist,
}
state = clist_row->state;
- cr_hw = gdk_cairo_create(clist->clist_window);
- image_surface = cairo_surface_create_similar_image(cairo_get_target(cr_hw),
- CAIRO_FORMAT_RGB24,
- gdk_window_get_width(clist->clist_window),
- gdk_window_get_height(clist->clist_window));
- cr = cairo_create(image_surface);
+ cr = gdk_cairo_create(clist->clist_window);
if (clist_row->fg_set && state != GTK_STATE_SELECTED)
fgcolor = &clist_row->foreground;
@@ -944,19 +937,7 @@ draw_row (GtkCMCList *clist,
cairo_stroke(cr);
}
}
-
- cairo_set_operator(cr_hw, CAIRO_OPERATOR_SOURCE);
- cairo_set_source_surface(cr_hw, image_surface, 0, 0);
- cairo_rectangle(cr_hw,
- row_rectangle.x,
- row_rectangle.y - CELL_SPACING,
- row_rectangle.width,
- row_rectangle.height + CELL_SPACING * 2);
- cairo_fill(cr_hw);
-
cairo_destroy(cr);
- cairo_surface_destroy(image_surface);
- cairo_destroy(cr_hw);
}
static void
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list