summaryrefslogtreecommitdiff
path: root/eel/eel-gdk-extensions.h
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-11-07 17:27:04 +0200
committerJasmine Hassan <[email protected]>2012-11-16 09:45:52 +0200
commit8af0b94b1f4df47364abc9f7f02cc467ecd1cdee (patch)
treec9ac66b4ffbb657f98f72702604d96bae6bd5d7c /eel/eel-gdk-extensions.h
parent2e0b6b0a2e689d5af0ca719ee0ef29f90c4f2e0c (diff)
downloadcaja-8af0b94b1f4df47364abc9f7f02cc467ecd1cdee.tar.bz2
caja-8af0b94b1f4df47364abc9f7f02cc467ecd1cdee.tar.xz
[eel-gdk-extensions] Add eel_cairo_draw_layout_with_drop_shadow for GTK3
keeping eel_gdk_draw_layout_with_drop_shadow for GTK2 http://git.gnome.org/browse/nautilus/commit/?id=d2f141f4a5435b10b43abea0822e3d0569b67886
Diffstat (limited to 'eel/eel-gdk-extensions.h')
-rw-r--r--eel/eel-gdk-extensions.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/eel/eel-gdk-extensions.h b/eel/eel-gdk-extensions.h
index a879bdce..2036eec4 100644
--- a/eel/eel-gdk-extensions.h
+++ b/eel/eel-gdk-extensions.h
@@ -28,6 +28,10 @@
#include <gdk/gdk.h>
+#ifndef GTK_CHECK_VERSION
+#include <gtk/gtk.h>
+#endif
+
#define EEL_RGB_COLOR_RED 0xFF0000
#define EEL_RGB_COLOR_GREEN 0x00FF00
#define EEL_RGB_COLOR_BLUE 0x0000FF
@@ -118,10 +122,14 @@ EelGdkGeometryFlags eel_gdk_parse_geometry (const char
int *y_return,
guint *width_return,
guint *height_return);
+#if GTK_CHECK_VERSION(3,0,0)
+void eel_cairo_draw_layout_with_drop_shadow (cairo_t *cr,
+#else
void eel_gdk_draw_layout_with_drop_shadow (GdkDrawable *drawable,
- GdkColor *text_color,
- GdkColor *shadow_color,
- int x,
- int y,
- PangoLayout *layout);
+#endif
+ GdkColor *text_color,
+ GdkColor *shadow_color,
+ int x,
+ int y,
+ PangoLayout *layout);
#endif /* EEL_GDK_EXTENSIONS_H */