[gtk/wip/matthiasc/lottie-stroke: 60/67] XXX: work around meson issues
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/lottie-stroke: 60/67] XXX: work around meson issues
- Date: Thu, 3 Dec 2020 02:46:44 +0000 (UTC)
commit e6dfeca5ffb061787204d7037c0d34f8320c848c
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Nov 29 21:34:50 2020 -0500
XXX: work around meson issues
The linker and/or meson drop symbols from convenience
libraries unless we use them in libgtk.
gtk/gtktestutils.c | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
---
diff --git a/gtk/gtktestutils.c b/gtk/gtktestutils.c
index 690931a153..702248681c 100644
--- a/gtk/gtktestutils.c
+++ b/gtk/gtktestutils.c
@@ -90,6 +90,31 @@ gtk_test_init (int *argcp,
setlocale (LC_ALL, "en_US.UTF-8");
gtk_init ();
+
+ /* Work around meson or linker fuckup - symbols get dropped
+ * from libgsk unless we use them in libgtk.
+ */
+ {
+ GskPathBuilder *builder;
+ GskPath *path;
+ GskPathMeasure *measure;
+ GskStroke *stroke;
+
+ builder = gsk_path_builder_new ();
+ gsk_path_builder_move_to (builder, 10, 10);
+ gsk_path_builder_close (builder);
+ path = gsk_path_builder_free_to_path (builder);
+ measure = gsk_path_measure_new (path);
+ gsk_path_unref (path);
+
+ stroke = gsk_stroke_new (1);
+ path = gsk_path_measure_stroke (measure, stroke);
+ gsk_stroke_free (stroke);
+
+ gsk_path_measure_unref (measure);
+
+ gsk_path_unref (path);
+ }
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]