gimp r25648 - in trunk: . app/vectors



Author: simon
Date: Tue May 13 09:18:32 2008
New Revision: 25648
URL: http://svn.gnome.org/viewvc/gimp?rev=25648&view=rev

Log:
2008-05-13  Simon Budig  <simon gimp org>

	* app/vectors/vectors-types.h: add a comment explaining the hack.



Modified:
   trunk/ChangeLog
   trunk/app/vectors/vectors-types.h

Modified: trunk/app/vectors/vectors-types.h
==============================================================================
--- trunk/app/vectors/vectors-types.h	(original)
+++ trunk/app/vectors/vectors-types.h	Tue May 13 09:18:32 2008
@@ -35,6 +35,19 @@
 typedef struct _GimpStroke          GimpStroke;
 typedef struct _GimpBezierStroke    GimpBezierStroke;
 
+/*
+ * The following hack is made so that we can reuse the definition
+ * the cairo definition of cairo_path_t without having to translate
+ * between our own version of a bezier description and cairos version.
+ *
+ * to avoid having to include <cairo/cairo.h> in each and every file
+ * including this file we only use the "real" definition when cairo.h
+ * already has been included and use something else.
+ *
+ * Note that if you really want to work with GimpBezierDesc (except just
+ * passing pointers to it around) you also need to include <cairo/cairo.h>.
+ */
+
 #ifdef CAIRO_VERSION
 typedef cairo_path_t GimpBezierDesc;
 #else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]