summaryrefslogtreecommitdiff
path: root/gtk/a11y/gtktextviewaccessible.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/a11y/gtktextviewaccessible.c')
-rw-r--r--gtk/a11y/gtktextviewaccessible.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/a11y/gtktextviewaccessible.c b/gtk/a11y/gtktextviewaccessible.c
index 3decaafd38..3445a36308 100644
--- a/gtk/a11y/gtktextviewaccessible.c
+++ b/gtk/a11y/gtktextviewaccessible.c
@@ -454,7 +454,7 @@ gtk_text_view_accessible_get_offset_at_point (AtkText *text,
return -1;
view = GTK_TEXT_VIEW (widget);
- window = gtk_widget_get_window (widget);
+ window = gtk_widget_get_surface (widget);
gdk_surface_get_origin (window, &x_widget, &y_widget);
if (coords == ATK_XY_SCREEN)
@@ -523,7 +523,7 @@ gtk_text_view_accessible_get_character_extents (AtkText *text,
gtk_text_buffer_get_iter_at_offset (buffer, &iter, offset);
gtk_text_view_get_iter_location (view, &iter, &rectangle);
- window = gtk_widget_get_window (widget);
+ window = gtk_widget_get_surface (widget);
if (window == NULL)
return;