]> spindle.queued.net Git - midori/commitdiff
Guard GTK+ 2.12 tooltip API in katze_property_label function
authorChristian Dywan <christian@twotoasts.de>
Wed, 18 Nov 2009 18:02:42 +0000 (19:02 +0100)
committerChristian Dywan <christian@twotoasts.de>
Wed, 18 Nov 2009 18:02:42 +0000 (19:02 +0100)
katze/katze-utils.c

index b0cffc99da432646fb9e8813c20871d4ac5a4f4a..5c8dc0358176cb0842bb55092c233fffe21e64bb 100644 (file)
@@ -14,7 +14,6 @@
 #include <glib/gstdio.h>
 #include <glib/gi18n.h>
 #include <gio/gio.h>
-#include <libsoup/soup.h>
 
 #include <string.h>
 
@@ -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;