aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2012-01-25 18:10:29 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2012-01-25 18:10:29 +0100
commit1baaf2880f44fea4519f323e3da425318af6c688 (patch)
tree5cf2b82e7df032f474abdd39deeb18f9cf97e4fc
parentc26baddf8b8f8a290557f1a51d4e957bc95e45c1 (diff)
downloadlibayatana-indicator-1baaf2880f44fea4519f323e3da425318af6c688.tar.gz
libayatana-indicator-1baaf2880f44fea4519f323e3da425318af6c688.tar.bz2
libayatana-indicator-1baaf2880f44fea4519f323e3da425318af6c688.zip
IndicatorObject: update object parent in any case.
-rw-r--r--libindicator/indicator-object.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libindicator/indicator-object.c b/libindicator/indicator-object.c
index 91f45ff..d0b3ecf 100644
--- a/libindicator/indicator-object.c
+++ b/libindicator/indicator-object.c
@@ -773,11 +773,11 @@ indicator_object_entry_being_removed (IndicatorObject * io, IndicatorObjectEntry
entry_get_private (io, entry)->visibility = ENTRY_INVISIBLE;
+ if (entry)
+ entry->parent_object = NULL;
+
if (class->entry_being_removed != NULL)
{
- if (entry)
- entry->parent_object = NULL;
-
class->entry_being_removed (io, entry);
}
}
@@ -790,11 +790,11 @@ indicator_object_entry_was_added (IndicatorObject * io, IndicatorObjectEntry * e
entry_get_private (io, entry)->visibility = ENTRY_VISIBLE;
+ if (entry)
+ entry->parent_object = io;
+
if (class->entry_was_added != NULL)
{
- if (entry)
- entry->parent_object = io;
-
class->entry_was_added (io, entry);
}
}