[libdazzle] multi-paned: fix initial state of multi paned
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] multi-paned: fix initial state of multi paned
- Date: Wed, 21 Jun 2017 22:56:33 +0000 (UTC)
commit a4b478e8b1181038de76689097fb9445ad216dd5
Author: Christian Hergert <chergert redhat com>
Date: Wed Jun 21 15:56:24 2017 -0700
multi-paned: fix initial state of multi paned
We should have probably defaulted to horizontal since it is the zero state.
But since we didn't, we need to set the initial value in our instance
init function.
src/widgets/dzl-multi-paned.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/widgets/dzl-multi-paned.c b/src/widgets/dzl-multi-paned.c
index 9101761..e167021 100644
--- a/src/widgets/dzl-multi-paned.c
+++ b/src/widgets/dzl-multi-paned.c
@@ -1926,7 +1926,7 @@ dzl_multi_paned_class_init (DzlMultiPanedClass *klass)
"Orientation",
GTK_TYPE_ORIENTATION,
GTK_ORIENTATION_VERTICAL,
- (G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
+ (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_properties (object_class, N_PROPS, properties);
@@ -1975,6 +1975,7 @@ dzl_multi_paned_init (DzlMultiPaned *self)
gtk_widget_set_has_window (GTK_WIDGET (self), FALSE);
+ priv->orientation = GTK_ORIENTATION_VERTICAL;
priv->children = g_array_new (FALSE, TRUE, sizeof (DzlMultiPanedChild));
dzl_multi_paned_create_pan_gesture (self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]