From: Christian Dywan Date: Wed, 18 Nov 2009 18:02:42 +0000 (+0100) Subject: Guard GTK+ 2.12 tooltip API in katze_property_label function X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77897bc173e7ed45f69a3ac98700b55e68ccdb03;p=midori Guard GTK+ 2.12 tooltip API in katze_property_label function --- 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;