From 45b93644b7b970a78512bae374f822b209673a26 Mon Sep 17 00:00:00 2001 From: Alice Mikhaylenko Date: Mon, 17 Jun 2024 15:35:39 +0400 Subject: [PATCH] aboutdialog: Fix build on windows --- gtk/gtkaboutdialog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c index 93c5711620..ecc7c24f4e 100644 --- a/gtk/gtkaboutdialog.c +++ b/gtk/gtkaboutdialog.c @@ -727,8 +727,9 @@ update_links_cb (GtkAboutDialog *about) { GtkTextTag *tag = l->data; GdkRGBA color; + const char *uri = g_object_get_data (G_OBJECT (tag), "uri"); - if (g_ptr_array_find_with_equal_func (about->visited_links, link, (GCompareFunc)strcmp, NULL)) + if (uri && g_ptr_array_find_with_equal_func (about->visited_links, uri, (GCompareFunc)strcmp, NULL)) color = visited_link_color; else color = link_color;