[gtk/matthiasc/lottie] Add a getter for the stroke
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/lottie] Add a getter for the stroke
- Date: Sun, 22 Nov 2020 18:53:34 +0000 (UTC)
commit d70f1602dd355f26ac61fc0e12fccf17e27d5345
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Nov 22 13:40:46 2020 -0500
Add a getter for the stroke
tests/curve-editor.c | 6 ++++++
tests/curve-editor.h | 3 +++
2 files changed, 9 insertions(+)
---
diff --git a/tests/curve-editor.c b/tests/curve-editor.c
index 12d65bf726..7472e98a00 100644
--- a/tests/curve-editor.c
+++ b/tests/curve-editor.c
@@ -1623,5 +1623,11 @@ curve_editor_set_stroke (CurveEditor *self,
gtk_widget_queue_draw (GTK_WIDGET (self));
}
+
+const GskStroke *
+curve_editor_get_stroke (CurveEditor *self)
+{
+ return self->stroke;
+}
/* }}} */
/* vim:set foldmethod=marker expandtab: */
diff --git a/tests/curve-editor.h b/tests/curve-editor.h
index 85bac0d4b1..3d8f3808ae 100644
--- a/tests/curve-editor.h
+++ b/tests/curve-editor.h
@@ -20,4 +20,7 @@ GskPath * curve_editor_get_path (CurveEditor *self);
void curve_editor_set_stroke (CurveEditor *self,
GskStroke *stroke);
+const GskStroke *
+ curve_editor_get_stroke (CurveEditor *self);
+
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]