From 77897bc173e7ed45f69a3ac98700b55e68ccdb03 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 18 Nov 2009 19:02:42 +0100 Subject: [PATCH] Guard GTK+ 2.12 tooltip API in katze_property_label function --- katze/katze-utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/katze/katze-utils.c b/katze/katze-utils.c index b0cffc99..5c8dc035 100644 --- a/katze/katze-utils.c +++ b/katze/katze-utils.c @@ -14,7 +14,6 @@ #include #include #include -#include #include @@ -869,7 +868,9 @@ katze_property_label (gpointer object, nick = g_param_spec_get_nick (pspec); widget = gtk_label_new (nick); + #if GTK_CHECK_VERSION (2, 12, 0) gtk_widget_set_tooltip_text (widget, g_param_spec_get_blurb (pspec)); + #endif gtk_misc_set_alignment (GTK_MISC (widget), 0.0, 0.5); return widget; -- 2.39.5