summaryrefslogtreecommitdiff
path: root/eel/eel-gtk-container.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-07-24 18:07:09 +0200
committerStefano Karapetsas <[email protected]>2013-07-24 18:07:09 +0200
commitd89968247ad185d4c9e37ab9930cb64dcda058dd (patch)
treef63c7a4b9cf0dc3e14610c1ddfbaa6ff20f0ad71 /eel/eel-gtk-container.c
parent3d3cfc6566a29aea5da9f3223f3d4a0e28e3fa60 (diff)
downloadcaja-d89968247ad185d4c9e37ab9930cb64dcda058dd.tar.bz2
caja-d89968247ad185d4c9e37ab9930cb64dcda058dd.tar.xz
eel: Add GTK3 support
Diffstat (limited to 'eel/eel-gtk-container.c')
-rw-r--r--eel/eel-gtk-container.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/eel/eel-gtk-container.c b/eel/eel-gtk-container.c
index cb841fd5..9a1df176 100644
--- a/eel/eel-gtk-container.c
+++ b/eel/eel-gtk-container.c
@@ -43,7 +43,11 @@
void
eel_gtk_container_child_expose_event (GtkContainer *container,
GtkWidget *child,
+#if GTK_CHECK_VERSION (3, 0, 0)
+ cairo_t *cr)
+#else
GdkEventExpose *event)
+#endif
{
g_return_if_fail (GTK_IS_CONTAINER (container));
@@ -54,7 +58,11 @@ eel_gtk_container_child_expose_event (GtkContainer *container,
g_return_if_fail (GTK_IS_WIDGET (child));
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_container_propagate_draw (container, child, cr);
+#else
gtk_container_propagate_expose (container, child, event);
+#endif
}
/**