From 31514752db132ebd1a0350e6ab9f327ba2b6cc49 Mon Sep 17 00:00:00 2001
From: Simon Schoelly <sischoel@gmail.com>
Date: Fri, 14 Feb 2025 15:35:39 +0100
Subject: [PATCH] Explicetly import Gtk to allow regression to draw images

---
 test/Project.toml | 1 +
 test/runtests.jl  | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/Project.toml b/test/Project.toml
index f2715c3..270bc72 100644
--- a/test/Project.toml
+++ b/test/Project.toml
@@ -4,6 +4,7 @@ ImageMagick = "6218d12a-5da1-5696-b52f-db25d2ecc6d1"
 Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
 Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
 VisualRegressionTests = "34922c18-7c2a-561c-bac1-01e79b2c4c92"
+Gtk = "4c0ca9eb-093a-5379-98c5-f87ac0bbbf44"
 
 [compat]
 VisualRegressionTests = "< 1.1.0" # TODO currently visual regression tests are broken for version >= 1.1.0
diff --git a/test/runtests.jl b/test/runtests.jl
index 3c8e45e..9ee1fa2 100644
--- a/test/runtests.jl
+++ b/test/runtests.jl
@@ -9,6 +9,7 @@ using GraphPlot.Colors
 using GraphPlot.Compose
 using Random
 using Test
+import Gtk # import as Compose and Gtk both export a draw method
 using VisualRegressionTests
 using ImageMagick
 
@@ -143,4 +144,4 @@ end
     x2,y2 = shell_layout(g,[[1,3,5],[2,4,6]])
     @test all(isapprox.(x2, [1.0, 2.0, -0.4999999999999998, -0.9999999999999996, -0.5000000000000004, -1.0000000000000009]))
     @test all(isapprox.(y2, [0.0, 0.0, 0.8660254037844387, 1.7320508075688774, -0.8660254037844385, -1.732050807568877]))
-end
\ No newline at end of file
+end