compatibility for gtk 2.16

This commit is contained in:
Berke Viktor 2011-11-22 16:25:26 +01:00
parent 79ae07f940
commit 98938cd85e
1 changed files with 4 additions and 0 deletions

View File

@ -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;