[gimp] libgimpwidgets: allow gimpcairo-utils.h inclusion from non-gui files
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpwidgets: allow gimpcairo-utils.h inclusion from non-gui files
- Date: Wed, 1 Sep 2010 21:14:37 +0000 (UTC)
commit 1e525ff3b9ca32f8b84c3ecfceedc61a8eddc0c4
Author: Michael Natterer <mitch gimp org>
Date: Wed Sep 1 23:13:02 2010 +0200
libgimpwidgets: allow gimpcairo-utils.h inclusion from non-gui files
This is such a bad hack, but I currently can't decide how to properly
split this file into GTK+ and non-GTK+ parts...
libgimpwidgets/gimpcairo-utils.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/libgimpwidgets/gimpcairo-utils.h b/libgimpwidgets/gimpcairo-utils.h
index 79ebfd3..0ff7650 100644
--- a/libgimpwidgets/gimpcairo-utils.h
+++ b/libgimpwidgets/gimpcairo-utils.h
@@ -28,8 +28,14 @@ void gimp_cairo_set_source_rgb (cairo_t *cr,
void gimp_cairo_set_source_rgba (cairo_t *cr,
const GimpRGB *color);
+/* This is a bad hack that allows to include this file from the app's
+ * non-gui files. I haven't decided yet how to split this header and
+ * where to move the non-GTK+ part. --Mitch
+ */
+#ifdef __GTK_H__
gboolean gimp_cairo_set_focus_line_pattern (cairo_t *cr,
GtkWidget *widget);
+#endif
cairo_pattern_t * gimp_cairo_checkerboard_create (cairo_t *cr,
gint size,
@@ -93,7 +99,6 @@ cairo_surface_t * gimp_cairo_surface_create_from_pixbuf (GdkPixbuf *pixbuf);
*
* Since: GIMP 2.6
**/
-
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
#define GIMP_CAIRO_ARGB32_SET_PIXEL(d, r, g, b, a) \
G_STMT_START { \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]