[sysprof] libsysprof-ui: tweak drawing of boxes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] libsysprof-ui: tweak drawing of boxes
- Date: Wed, 29 May 2019 22:25:08 +0000 (UTC)
commit 9d05c3830376c0f8965b75f5ed2524353ed6427b
Author: Christian Hergert <chergert redhat com>
Date: Mon May 13 14:49:54 2019 -0700
libsysprof-ui: tweak drawing of boxes
src/libsysprof-ui/sysprof-cell-renderer-duration.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libsysprof-ui/sysprof-cell-renderer-duration.c
b/src/libsysprof-ui/sysprof-cell-renderer-duration.c
index 94bd7b7..2ab7b89 100644
--- a/src/libsysprof-ui/sysprof-cell-renderer-duration.c
+++ b/src/libsysprof-ui/sysprof-cell-renderer-duration.c
@@ -85,9 +85,9 @@ sysprof_cell_renderer_duration_render (GtkCellRenderer *renderer,
x2 = x1;
r.x = cell_area->x + x1;
- r.y = cell_area->y;
+ r.y = cell_area->y + (cell_area->height / 5.0);
r.width = MAX (1.0, x2 - x1);
- r.height = cell_area->height;
+ r.height = cell_area->height / 5.0 * 3.25;
gdk_cairo_rectangle (cr, &r);
gdk_cairo_set_source_rgba (cr, &rgba);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]