aboutsummaryrefslogtreecommitdiff
path: root/hardinfo
diff options
context:
space:
mode:
Diffstat (limited to 'hardinfo')
-rw-r--r--hardinfo/vendor.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/hardinfo/vendor.c b/hardinfo/vendor.c
index 5df57c52..83c99fcf 100644
--- a/hardinfo/vendor.c
+++ b/hardinfo/vendor.c
@@ -423,6 +423,11 @@ gchar *vendor_get_link(const gchar *id_str)
gchar *vendor_get_link_from_vendor(const Vendor *v)
{
+ gboolean label_link_ok = FALSE;
+#if GTK_CHECK_VERSION(2, 18, 0)
+ label_link_ok = TRUE;
+#endif
+
if (!v) {
return g_strdup(_("Unknown"));
}
@@ -431,7 +436,7 @@ gchar *vendor_get_link_from_vendor(const Vendor *v)
return g_strdup(v->name);
}
- if (params.markup_ok) {
+ if (params.markup_ok && label_link_ok) {
const gchar *prefix;
if (!strncmp(v->url, "http://", sizeof("http://") - 1) ||