[sysprof/wip/chergert/sysprof-3] libsysprof-ui: tweak drawing of boxes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/chergert/sysprof-3] libsysprof-ui: tweak drawing of boxes
- Date: Mon, 13 May 2019 21:51:34 +0000 (UTC)
commit 64cfe6e5aad95d7dee4d8c00e9fe67665475d815
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]