From 10a826f58e958c85b3781f1fd49f48071705e9c1 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Thu, 16 May 2019 16:10:00 -0700 Subject: [PATCH] libsysprof-ui: add rounded rectangle helper --- src/libsysprof-ui/meson.build | 1 + src/libsysprof-ui/sysprof-marks-view.h | 2 +- src/libsysprof-ui/sysprof-ui-private.h | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/libsysprof-ui/meson.build b/src/libsysprof-ui/meson.build index 29972b7e..31bed09f 100644 --- a/src/libsysprof-ui/meson.build +++ b/src/libsysprof-ui/meson.build @@ -27,6 +27,7 @@ libsysprof_ui_private_sources = [ 'pointcache.c', 'rectangles.c', 'sysprof-details-view.c', + 'sysprof-cairo.c', 'sysprof-cell-renderer-duration.c', 'sysprof-cell-renderer-percent.c', 'sysprof-tab.c', diff --git a/src/libsysprof-ui/sysprof-marks-view.h b/src/libsysprof-ui/sysprof-marks-view.h index 6a65ea54..f646c43f 100644 --- a/src/libsysprof-ui/sysprof-marks-view.h +++ b/src/libsysprof-ui/sysprof-marks-view.h @@ -20,7 +20,7 @@ #pragma once -#include +#include #include G_BEGIN_DECLS diff --git a/src/libsysprof-ui/sysprof-ui-private.h b/src/libsysprof-ui/sysprof-ui-private.h index 8aae79f6..dcb5633f 100644 --- a/src/libsysprof-ui/sysprof-ui-private.h +++ b/src/libsysprof-ui/sysprof-ui-private.h @@ -29,6 +29,9 @@ void _sysprof_marks_view_set_hadjustment (SysprofMarksView *self, GtkAdjustment *hadjustment); void _sysprof_visualizer_view_set_hadjustment (SysprofVisualizerView *self, GtkAdjustment *hadjustment); - +void _sysprof_rounded_rectangle (cairo_t *cr, + const GdkRectangle *rect, + gint x_radius, + gint y_radius); G_END_DECLS