summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBerke Viktor <berkeviktor@aol.com>2011-11-22 16:25:26 +0100
committerBerke Viktor <berkeviktor@aol.com>2011-11-22 16:25:26 +0100
commit98938cd85e02d93c2e27454c49a4f1e23c9e45d2 (patch)
tree5f8f1c6cbada9c62979a34538fb968837938b7c9
parent79ae07f9403385bc954bd8efed017e98b1a61e45 (diff)
compatibility for gtk 2.16
-rw-r--r--src/fe-gtk/xtext.c4
1 files changed, 4 insertions, 0 deletions
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;