summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-07-30 15:18:54 +0200
committerraveit65 <[email protected]>2016-07-30 15:19:37 +0200
commitcf2cb256d26a69e7a0d922fcbd6912c8cac16ab7 (patch)
tree3353fa1613c5ae127bc920c3ad50e753d215651d
parent213b8927e2be917191e100661410ef4facd7d3a3 (diff)
downloadpluma-cf2cb256d26a69e7a0d922fcbd6912c8cac16ab7.tar.bz2
pluma-cf2cb256d26a69e7a0d922fcbd6912c8cac16ab7.tar.xz
GTK+-3 pluma-window: avoid deprecated gtk_[h|v]paned_new
replace it with gtk_paned_new ()
-rw-r--r--pluma/pluma-window.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/pluma/pluma-window.c b/pluma/pluma-window.c
index 23cdcae0..7e18211c 100644
--- a/pluma/pluma-window.c
+++ b/pluma/pluma-window.c
@@ -3861,15 +3861,23 @@ pluma_window_init (PlumaWindow *window)
create_statusbar (window, main_box);
/* Add the main area */
- pluma_debug_message (DEBUG_WINDOW, "Add main area");
+ pluma_debug_message (DEBUG_WINDOW, "Add main area");
+#if GTK_CHECK_VERSION(3, 0, 0)
+ window->priv->hpaned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
+#else
window->priv->hpaned = gtk_hpaned_new ();
+#endif
gtk_box_pack_start (GTK_BOX (main_box),
window->priv->hpaned,
TRUE,
TRUE,
0);
+#if GTK_CHECK_VERSION(3, 0, 0)
+ window->priv->vpaned = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
+#else
window->priv->vpaned = gtk_vpaned_new ();
+#endif
gtk_paned_pack2 (GTK_PANED (window->priv->hpaned),
window->priv->vpaned,
TRUE,