compatibility for gtk 2.16
This commit is contained in:
parent
79ae07f940
commit
98938cd85e
|
@ -999,7 +999,11 @@ gtk_xtext_realize (GtkWidget * widget)
|
||||||
|
|
||||||
gdk_window_set_user_data (widget->window, 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;
|
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.subwindow_mode = GDK_INCLUDE_INFERIORS;
|
||||||
val.graphics_exposures = 0;
|
val.graphics_exposures = 0;
|
||||||
|
|
Loading…
Reference in New Issue