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;