[gnome-builder] notebook: set wide-handle on Gtk+ 3.15+
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] notebook: set wide-handle on Gtk+ 3.15+
- Date: Mon, 20 Oct 2014 22:53:01 +0000 (UTC)
commit 3ad0be6e8794a74b9ab73ef9bbcc28326b0b7407
Author: Christian Hergert <christian hergert me>
Date: Mon Oct 20 15:52:53 2014 -0700
notebook: set wide-handle on Gtk+ 3.15+
src/tabs/gb-multi-notebook.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/tabs/gb-multi-notebook.c b/src/tabs/gb-multi-notebook.c
index 79e5be1..d34a701 100644
--- a/src/tabs/gb-multi-notebook.c
+++ b/src/tabs/gb-multi-notebook.c
@@ -1052,9 +1052,13 @@ gb_multi_notebook_insert_notebook (GbMultiNotebook *self,
position = CLAMP (position, 0, priv->notebooks->len);
notebook_container = g_object_new (GTK_TYPE_PANED,
+ "orientation", GTK_ORIENTATION_HORIZONTAL,
"expand", TRUE,
"visible", TRUE,
NULL);
+#if GTK_CHECK_VERSION(3, 15, 0)
+ gtk_paned_set_wide_handle (GTK_PANED (notebook_container), TRUE);
+#endif
gtk_paned_add1 (GTK_PANED (notebook_container), GTK_WIDGET (notebook));
gtk_container_child_set (GTK_CONTAINER (notebook_container),
GTK_WIDGET (notebook),
@@ -1285,6 +1289,9 @@ gb_multi_notebook_init (GbMultiNotebook *self)
"orientation", GTK_ORIENTATION_HORIZONTAL,
"visible", TRUE,
NULL);
+#if GTK_CHECK_VERSION(3, 15, 0)
+ gtk_paned_set_wide_handle (priv->root_paned, TRUE);
+#endif
gtk_container_add (GTK_CONTAINER (self), GTK_WIDGET (priv->root_paned));
notebook = g_object_new (GB_TYPE_NOTEBOOK,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]