[Goodies-commits] r6746 - in xfce4-notes-plugin/trunk: . panel-plugin

Mike Massonnet mmassonnet at xfce.org
Sun Feb 22 10:07:06 CET 2009


Author: mmassonnet
Date: 2009-02-22 09:07:06 +0000 (Sun, 22 Feb 2009)
New Revision: 6746

Modified:
   xfce4-notes-plugin/trunk/ChangeLog
   xfce4-notes-plugin/trunk/panel-plugin/color.c
   xfce4-notes-plugin/trunk/panel-plugin/color.h
Log:
Fix GTK_CHECK_VERSION for gdk_color_to_string

Modified: xfce4-notes-plugin/trunk/ChangeLog
===================================================================
--- xfce4-notes-plugin/trunk/ChangeLog	2009-02-22 08:57:56 UTC (rev 6745)
+++ xfce4-notes-plugin/trunk/ChangeLog	2009-02-22 09:07:06 UTC (rev 6746)
@@ -1,5 +1,11 @@
 2009-02-22  Mike Massonnet <mmassonnet at xfce.org>
 
+Fix GTK_CHECK_VERSION for gdk_color_to_string
+	* panel-plugin/color.[ch]:
+	  - Testing !GTK_CHECK_VERSION is the valid check
+
+2009-02-22  Mike Massonnet <mmassonnet at xfce.org>
+
 Default background color in the settings dialog
 	* panel-plugin/color.[ch]:
 	  - New file with functions related to colors and other functions to

Modified: xfce4-notes-plugin/trunk/panel-plugin/color.c
===================================================================
--- xfce4-notes-plugin/trunk/panel-plugin/color.c	2009-02-22 08:57:56 UTC (rev 6745)
+++ xfce4-notes-plugin/trunk/panel-plugin/color.c	2009-02-22 09:07:06 UTC (rev 6746)
@@ -215,7 +215,7 @@
   color->blue  = G_MAXUINT16 * pow (N_b_, 1 / 2.2);
 }
 
-#if GTK_CHECK_VERSION (2,12,0)
+#if !GTK_CHECK_VERSION (2,12,0)
 gchar *
 gdk_color_to_string (const GdkColor *color)
 {

Modified: xfce4-notes-plugin/trunk/panel-plugin/color.h
===================================================================
--- xfce4-notes-plugin/trunk/panel-plugin/color.h	2009-02-22 08:57:56 UTC (rev 6745)
+++ xfce4-notes-plugin/trunk/panel-plugin/color.h	2009-02-22 09:07:06 UTC (rev 6746)
@@ -27,7 +27,7 @@
 void                    color_set_background            (const gchar *background);
 void                    __gdk_color_contrast            (GdkColor *color,
                                                          gdouble contrast);
-#if GTK_CHECK_VERSION (2,12,0)
+#if !GTK_CHECK_VERSION (2,12,0)
 gchar *                 gdk_color_to_string             (const GdkColor *color);
 #endif
 




More information about the Goodies-commits mailing list