summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-19 01:34:31 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-19 01:34:31 +0100
commit0ca18e1d5110c571d53afd631f0bad4d0097641e (patch)
tree64425f59a5182ba24ac8bdb98763b43926384324 /eel
parent54820f4200c190318ed1213d12ce585b9b422619 (diff)
downloadcaja-0ca18e1d5110c571d53afd631f0bad4d0097641e.tar.bz2
caja-0ca18e1d5110c571d53afd631f0bad4d0097641e.tar.xz
GTK3 eel-wrap-table: don't use deprecated gtk_viewport_get_{h/v}adjustment
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);