GtkComboBoxText requires GTK+ 2.24, dump code for older versions

This commit is contained in:
Berke Viktor
2013-05-11 13:06:25 +02:00
parent 5c663adf35
commit 712eb5428e
7 changed files with 10 additions and 26 deletions

View File

@@ -1034,11 +1034,7 @@ 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;