[gtk/wip/matthiasc/lottie-stroke: 41/51] XXX: work around meson issues
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/lottie-stroke: 41/51] XXX: work around meson issues
- Date: Tue, 1 Dec 2020 17:28:02 +0000 (UTC)
commit 624c633f62182a4966fedbcf5b0f5aaa34126a90
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 | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
---
diff --git a/gtk/gtktestutils.c b/gtk/gtktestutils.c
index 690931a153..5cbe02c898 100644
--- a/gtk/gtktestutils.c
+++ b/gtk/gtktestutils.c
@@ -90,6 +90,25 @@ 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, *path2;
+ 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);
+ stroke = gsk_stroke_new (1);
+ path2 = gsk_path_to_stroke (path, stroke);
+ gsk_stroke_free (stroke);
+ gsk_path_unref (path);
+ gsk_path_unref (path2);
+ }
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]