[Goodies-commits] r4850 - in xfce4-datetime-plugin/trunk: . panel-plugin

Diego Ongaro ongardie at xfce.org
Wed May 28 00:22:13 CEST 2008


Author: ongardie
Date: 2008-05-27 22:22:13 +0000 (Tue, 27 May 2008)
New Revision: 4850

Modified:
   xfce4-datetime-plugin/trunk/ChangeLog
   xfce4-datetime-plugin/trunk/panel-plugin/datetime.c
Log:
"Fix tooltip hiding" uses gtk2.12 function, put preprocessor #if around it


Modified: xfce4-datetime-plugin/trunk/ChangeLog
===================================================================
--- xfce4-datetime-plugin/trunk/ChangeLog	2008-05-27 22:22:05 UTC (rev 4849)
+++ xfce4-datetime-plugin/trunk/ChangeLog	2008-05-27 22:22:13 UTC (rev 4850)
@@ -1,5 +1,7 @@
 2008-05-27	Diego Ongaro <ongardie at gmail.com>
 
+	* panel-plugin/datetime.c: "Fix tooltip hiding" uses gtk2.12 function,
+	  put preprocessor #if around it
 	* {,po/}ChangeLog, panel-plugin/*.{c,h}: formatting
 
 2008-05-21	Diego Ongaro <ongardie at gmail.com>

Modified: xfce4-datetime-plugin/trunk/panel-plugin/datetime.c
===================================================================
--- xfce4-datetime-plugin/trunk/panel-plugin/datetime.c	2008-05-27 22:22:05 UTC (rev 4849)
+++ xfce4-datetime-plugin/trunk/panel-plugin/datetime.c	2008-05-27 22:22:13 UTC (rev 4850)
@@ -35,6 +35,8 @@
 #include "datetime.h"
 #include "datetime-dialog.h"
 
+#define USE_GTK_TOOLTIP_API     GTK_CHECK_VERSION(2,12,0)
+
 /*
  * Get date/time string
  */
@@ -134,7 +136,9 @@
     default:
       gtk_tooltips_set_tip(GTK_TOOLTIPS(datetime->tips), datetime->button,
           NULL, NULL);
+#if USE_GTK_TOOLTIP_API
       gtk_widget_set_has_tooltip(datetime->button, FALSE);
+#endif
       break;
   }
 




More information about the Goodies-commits mailing list