diff options
author | raveit65 <[email protected]> | 2015-09-01 20:50:39 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-09-06 13:08:31 +0200 |
commit | 97aea5c0ad0a57ee111a81f69a89f81bf1d0bbe3 (patch) | |
tree | 2f1c8f53abc2c00cff5482a1f8577faf6be1ec16 | |
parent | 0ea8ddb0d7f34a22da6467fb4688b321735c601d (diff) | |
download | eom-97aea5c0ad0a57ee111a81f69a89f81bf1d0bbe3.tar.bz2 eom-97aea5c0ad0a57ee111a81f69a89f81bf1d0bbe3.tar.xz |
Gtk3: fix deprecated gtk_vscrollbar_new
taken from:
https://git.gnome.org/browse/eog/commit/?id=59e675c
-rw-r--r-- | src/eom-scroll-view.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |