From a7dc2b5061895a034a31856ccd492e6e58cc6050 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Thu, 14 Nov 2024 12:57:28 +0100 Subject: [PATCH 1/2] chart: Don't clip It doesn't seem necessary, and gets rid of the line cutoff in some graphs. --- src/sysprof/sysprof-chart.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/sysprof/sysprof-chart.c b/src/sysprof/sysprof-chart.c index ea2ba09d..74737994 100644 --- a/src/sysprof/sysprof-chart.c +++ b/src/sysprof/sysprof-chart.c @@ -138,11 +138,6 @@ sysprof_chart_snapshot (GtkWidget *widget, g_assert (SYSPROF_IS_CHART (self)); - gtk_snapshot_push_clip (snapshot, - &GRAPHENE_RECT_INIT (0, 0, - gtk_widget_get_width (widget), - gtk_widget_get_height (widget))); - GTK_WIDGET_CLASS (sysprof_chart_parent_class)->snapshot (widget, snapshot); if (priv->pointer_in_chart) @@ -155,8 +150,6 @@ sysprof_chart_snapshot (GtkWidget *widget, priv->motion_x, priv->motion_y); } - - gtk_snapshot_pop (snapshot); } static gboolean From 7d8bc661c1363e5aa49a87ec07ecefcf2c26cc45 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Thu, 14 Nov 2024 12:59:17 +0100 Subject: [PATCH 2/2] graphics-section: Increase graph height As per feedback from WebKit developers. This helps visualizing these graphs slightly. --- src/sysprof/sysprof-graphics-section.ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sysprof/sysprof-graphics-section.ui b/src/sysprof/sysprof-graphics-section.ui index 98ad3d77..42bf1b6b 100644 --- a/src/sysprof/sysprof-graphics-section.ui +++ b/src/sysprof/sysprof-graphics-section.ui @@ -184,7 +184,7 @@ true - 24 + 32 GtkListItem