diff --git a/src/fe-gtk/xtext.c b/src/fe-gtk/xtext.c index 9aaf1328..82a13e8e 100644 --- a/src/fe-gtk/xtext.c +++ b/src/fe-gtk/xtext.c @@ -880,7 +880,8 @@ gtk_xtext_realize (GtkWidget * widget) parent_window = gtk_widget_get_parent_window (widget); attributes.visual = gtk_widget_get_visual (widget); attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL; -#else +#endif +#if !HAVE_GTK3 allocation = widget->allocation; parent_window = widget->parent->window; attributes.colormap = gtk_widget_get_colormap (widget);