diff options
author | Stefano Karapetsas <[email protected]> | 2013-07-24 15:49:14 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-07-24 15:49:14 +0200 |
commit | 3d3cfc6566a29aea5da9f3223f3d4a0e28e3fa60 (patch) | |
tree | 3f8248a0e8bf2eb76340311939adb19ea8acd4bf /eel | |
parent | aa136a012583317cd6b1fa246f1bf16194faf159 (diff) | |
download | caja-3d3cfc6566a29aea5da9f3223f3d4a0e28e3fa60.tar.bz2 caja-3d3cfc6566a29aea5da9f3223f3d4a0e28e3fa60.tar.xz |
eel: Disable unused function in GTK3
Diffstat (limited to 'eel')
-rw-r--r-- | eel/eel-debug-drawing.c | 2 | ||||
-rw-r--r-- | eel/eel-debug-drawing.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/eel/eel-debug-drawing.c b/eel/eel-debug-drawing.c index 63706829..05675dff 100644 --- a/eel/eel-debug-drawing.c +++ b/eel/eel-debug-drawing.c @@ -207,6 +207,7 @@ debug_pixbuf_viewer_set_pixbuf (DebugPixbufViewer *viewer, GdkPixbuf *pixbuf) * * Draw a rectangle and cross. Useful for debugging exposure events. */ +#if !GTK_CHECK_VERSION (3, 0, 0) void eel_debug_draw_rectangle_and_cross (GdkDrawable *drawable, EelIRect rectangle, @@ -252,6 +253,7 @@ eel_debug_draw_rectangle_and_cross (GdkDrawable *drawable, cairo_destroy (cr); } +#endif /** * eel_debug_show_pixbuf_in_external_viewer: diff --git a/eel/eel-debug-drawing.h b/eel/eel-debug-drawing.h index 8620ca6b..f7d29ef9 100644 --- a/eel/eel-debug-drawing.h +++ b/eel/eel-debug-drawing.h @@ -25,13 +25,16 @@ #ifndef EEL_DEBUG_DRAWING_H #define EEL_DEBUG_DRAWING_H +#include <gtk/gtk.h> #include <eel/eel-gdk-pixbuf-extensions.h> /* Draw a rectangle and cross on the given window */ +#if !GTK_CHECK_VERSION (3, 0, 0) void eel_debug_draw_rectangle_and_cross (GdkDrawable *drawable, EelIRect rectangle, guint32 color, gboolean draw_cross); +#endif /* Show the given pixbuf in an external out of process viewer */ void eel_debug_show_pixbuf_in_external_viewer (const GdkPixbuf *pixbuf, |