From 98938cd85e02d93c2e27454c49a4f1e23c9e45d2 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Tue, 22 Nov 2011 16:25:26 +0100 Subject: compatibility for gtk 2.16 --- src/fe-gtk/xtext.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/fe-gtk/xtext.c b/src/fe-gtk/xtext.c index d797e5ff..5a83062b 100644 --- a/src/fe-gtk/xtext.c +++ b/src/fe-gtk/xtext.c @@ -999,7 +999,11 @@ gtk_xtext_realize (GtkWidget * widget) gdk_window_set_user_data (widget->window, widget); +#if GTK_CHECK_VERSION(2,24,0) xtext->depth = gdk_window_get_visual (widget->window)->depth; +#else + xtext->depth = gdk_drawable_get_visual (widget->window)->depth; +#endif val.subwindow_mode = GDK_INCLUDE_INFERIORS; val.graphics_exposures = 0; -- cgit 1.4.1