From 97aea5c0ad0a57ee111a81f69a89f81bf1d0bbe3 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Tue, 1 Sep 2015 20:50:39 +0200 Subject: Gtk3: fix deprecated gtk_vscrollbar_new taken from: https://git.gnome.org/browse/eog/commit/?id=59e675c --- src/eom-scroll-view.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/eom-scroll-view.c b/src/eom-scroll-view.c index 81d9d70..d939d35 100644 --- a/src/eom-scroll-view.c +++ b/src/eom-scroll-view.c @@ -2497,7 +2497,11 @@ eom_scroll_view_init (EomScrollView *view) G_CALLBACK (adjustment_changed_cb), view); +#if GTK_CHECK_VERSION (3, 2, 0) + priv->vbar = gtk_scrollbar_new (GTK_ORIENTATION_VERTICAL, priv->vadj); +#else priv->vbar = gtk_vscrollbar_new (priv->vadj); +#endif priv->display = g_object_new (GTK_TYPE_DRAWING_AREA, "can-focus", TRUE, NULL); -- cgit v1.2.1