[libdazzle] multi-paned: clean up moving by index
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] multi-paned: clean up moving by index
- Date: Thu, 22 Jun 2017 07:45:45 +0000 (UTC)
commit 75dddc20f618de84a17029e612276bacdb719753
Author: Christian Hergert <chergert redhat com>
Date: Thu Jun 22 00:42:36 2017 -0700
multi-paned: clean up moving by index
src/widgets/dzl-multi-paned.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/widgets/dzl-multi-paned.c b/src/widgets/dzl-multi-paned.c
index 6bd3802..f6791d4 100644
--- a/src/widgets/dzl-multi-paned.c
+++ b/src/widgets/dzl-multi-paned.c
@@ -483,7 +483,12 @@ dzl_multi_paned_set_child_index (DzlMultiPaned *self,
if (ele->widget == widget)
{
- DzlMultiPanedChild copy = *ele;
+ DzlMultiPanedChild copy = { 0 };
+
+ copy.widget = ele->widget;
+ copy.handle = ele->handle;
+ copy.position = -1;
+ copy.position_set = FALSE;
g_array_remove_index (priv->children, i);
g_array_insert_val (priv->children, index, copy);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]