style: the default theme draws arrows, check boxes, radio buttons and expanders with a cairo context clipped only around the area drawn, not with the whole clip of the window

This commit is contained in:
Daemonratte 2026-10-17 12:17:16 +02:00
commit bbdabcad59
No known key found for this signature in database

View file

@ -3159,7 +3159,7 @@ draw_arrow (GdkWindow *window,
gint width,
gint height)
{
cairo_t *cr = gdk_cairo_create (window);
cairo_t *cr = gdk_cairo_create_in_area_libgtk_only (window, area);
gdk_cairo_set_source_color (cr, color);
if (area)
@ -3859,7 +3859,7 @@ gtk_default_draw_check (GtkStyle *style,
gint width,
gint height)
{
cairo_t *cr = gdk_cairo_create (window);
cairo_t *cr = gdk_cairo_create_in_area_libgtk_only (window, area);
enum { BUTTON, MENU, CELL } type = BUTTON;
int exterior_size;
int interior_size;
@ -3984,7 +3984,7 @@ gtk_default_draw_option (GtkStyle *style,
gint width,
gint height)
{
cairo_t *cr = gdk_cairo_create (window);
cairo_t *cr = gdk_cairo_create_in_area_libgtk_only (window, area);
enum { BUTTON, MENU, CELL } type = BUTTON;
int exterior_size;
@ -5382,7 +5382,7 @@ gtk_default_draw_expander (GtkStyle *style,
double x_double, y_double;
gint degrees = 0;
cairo_t *cr = gdk_cairo_create (window);
cairo_t *cr = gdk_cairo_create_in_area_libgtk_only (window, area);
if (area)
{