summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-wrap-table.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/eel/eel-wrap-table.c b/eel/eel-wrap-table.c
index 99592a90..56c1e5e9 100644
--- a/eel/eel-wrap-table.c
+++ b/eel/eel-wrap-table.c
@@ -798,8 +798,13 @@ wrap_table_child_focus_in (GtkWidget *widget,
if (!wrap_table_child_visible_in (widget, viewport))
{
+#if GTK_CHECK_VERSION (3, 0, 0)
+ hadj = gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (viewport));
+ vadj = gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (viewport));
+#else
hadj = gtk_viewport_get_hadjustment (GTK_VIEWPORT (viewport));
vadj = gtk_viewport_get_vadjustment (GTK_VIEWPORT (viewport));
+#endif
gtk_widget_translate_coordinates (widget, container, 0, 0, &x, &y);