[goffice] Fix add child menu in graph guru. [#777336]



commit 6f008eaa8c7a41e84ab356d8a3a78c81556031ed
Author: Jean Brefort <jean brefort normalesup org>
Date:   Sun Jan 22 19:40:28 2017 +0100

    Fix add child menu in graph guru. [#777336]

 ChangeLog                  |    5 +++++
 NEWS                       |    1 +
 goffice/graph/gog-object.c |    5 +++--
 3 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e25571b..c55bda0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-01-22  Jean Brefort  <jean brefort normalesup org>
+
+       * goffice/graph/gog-object.c (gog_object_clear_parent): fix add child menu
+       in graph guru. [#777336]
+
 2016-12-05  Jean Brefort  <jean brefort normalesup org>
 
        * goffice/graph/gog-axis-line.c (role_grid_line_major_can_add):
diff --git a/NEWS b/NEWS
index 1908693..fdfd0c4 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ Jean:
        * Fix conditional compilation for long double. Patch from Ludovic
        Rousseau). [#774439]
        * Reimplement major grids for discrete axes. [#775624].
+       * Fix add child menu in graph guru. [#777336]
 
 Morten:
        * Introspection fixes.
diff --git a/goffice/graph/gog-object.c b/goffice/graph/gog-object.c
index 1e3b8cc..3284095 100644
--- a/goffice/graph/gog-object.c
+++ b/goffice/graph/gog-object.c
@@ -1691,8 +1691,6 @@ gog_object_clear_parent (GogObject *obj)
 
        klass = GOG_OBJECT_GET_CLASS (obj);
        parent = obj->parent;
-       g_signal_emit (G_OBJECT (parent),
-               gog_object_signals [CHILD_REMOVED], 0, obj);
        (*klass->parent_changed) (obj, FALSE);
 
        if (obj->role != NULL && obj->role->pre_remove != NULL)
@@ -1706,6 +1704,9 @@ gog_object_clear_parent (GogObject *obj)
 
        obj->role = NULL;
 
+       g_signal_emit (G_OBJECT (parent),
+               gog_object_signals [CHILD_REMOVED], 0, obj);
+
        return TRUE;
 }
 


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