summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-09 15:06:06 +0100
committerinfirit <[email protected]>2014-12-09 23:02:28 +0100
commiteaa32a34c6a0cc117e77e955a5c04d892d48c527 (patch)
tree50bbacfaa6e38d8fd91295a261282177c07545d5
parentc79c111d958341c4b0d59085af9feb1da72c912d (diff)
downloadatril-eaa32a34c6a0cc117e77e955a5c04d892d48c527.tar.bz2
atril-eaa32a34c6a0cc117e77e955a5c04d892d48c527.tar.xz
Gtk3: Use gtk_paned_new() instead gtk_[h|v]paned_new()
-rw-r--r--shell/ev-window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 3e8e096a..3d4f5c84 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -7246,7 +7246,11 @@ ev_window_init (EvWindow *ev_window)
gtk_widget_show (ev_window->priv->toolbar);
/* Add the main area */
+#if GTK_CHECK_VERSION (3, 0, 0)
+ ev_window->priv->hpaned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
+#else
ev_window->priv->hpaned = gtk_hpaned_new ();
+#endif
g_signal_connect (ev_window->priv->hpaned,
"notify::position",
G_CALLBACK (ev_window_sidebar_position_change_cb),