[libdazzle] multi-paned: reset position-set when changing orientation



commit c699840f3ba3761dcb91bf02615efcd11ea2a3f9
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jun 21 16:43:23 2017 -0700

    multi-paned: reset position-set when changing orientation
    
    These are not as uesful when we change orientation because the available
    monitor space could be quite different in this direction.

 src/widgets/dzl-multi-paned.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/widgets/dzl-multi-paned.c b/src/widgets/dzl-multi-paned.c
index ee29ee7..246c604 100644
--- a/src/widgets/dzl-multi-paned.c
+++ b/src/widgets/dzl-multi-paned.c
@@ -1867,6 +1867,11 @@ dzl_multi_paned_set_property (GObject      *object,
     {
     case PROP_ORIENTATION:
       priv->orientation = g_value_get_enum (value);
+      for (guint i = 0; i < priv->children->len; i++)
+        {
+          DzlMultiPanedChild *child = &g_array_index (priv->children, DzlMultiPanedChild, i);
+          child->position_set = FALSE;
+        }
       dzl_multi_paned_update_child_handles (self);
       gtk_widget_queue_resize (GTK_WIDGET (self));
       break;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]