summaryrefslogtreecommitdiff
path: root/gtk/a11y/gtktreeviewaccessible.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/a11y/gtktreeviewaccessible.c')
-rw-r--r--gtk/a11y/gtktreeviewaccessible.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/a11y/gtktreeviewaccessible.c b/gtk/a11y/gtktreeviewaccessible.c
index cc28bbcf49..4c97e67830 100644
--- a/gtk/a11y/gtktreeviewaccessible.c
+++ b/gtk/a11y/gtktreeviewaccessible.c
@@ -1099,7 +1099,7 @@ gtk_tree_view_accessible_get_cell_extents (GtkCellAccessibleParent *parent,
GdkSurface *window;
gint x_toplevel, y_toplevel;
- window = gdk_surface_get_toplevel (gtk_widget_get_window (widget));
+ window = gdk_surface_get_toplevel (gtk_widget_get_surface (widget));
gdk_surface_get_origin (window, &x_toplevel, &y_toplevel);
w_x += x_toplevel;
@@ -1175,7 +1175,7 @@ gtk_tree_view_accessible_grab_cell_focus (GtkCellAccessibleParent *parent,
{
#ifdef GDK_WINDOWING_X11
gtk_window_present_with_time (GTK_WINDOW (toplevel),
- gdk_x11_get_server_time (gtk_widget_get_window (widget)));
+ gdk_x11_get_server_time (gtk_widget_get_surface (widget)));
#else
gtk_window_present (GTK_WINDOW (toplevel));
#endif