[Xfce4-commits] <midori:master> Guard GTK+ 2.12 tooltip API in katze_property_label function

Christian Dywan noreply at xfce.org
Wed Nov 18 20:14:01 CET 2009


Updating branch refs/heads/master
         to 77897bc173e7ed45f69a3ac98700b55e68ccdb03 (commit)
       from c8d02719cc7a18d0c17a2b6391e6800b8f6e3c46 (commit)

commit 77897bc173e7ed45f69a3ac98700b55e68ccdb03
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Nov 18 19:02:42 2009 +0100

    Guard GTK+ 2.12 tooltip API in katze_property_label function

 katze/katze-utils.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/katze/katze-utils.c b/katze/katze-utils.c
index b0cffc9..5c8dc03 100644
--- a/katze/katze-utils.c
+++ b/katze/katze-utils.c
@@ -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;



More information about the Xfce4-commits mailing list