diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2012-01-25 18:10:29 +0100 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2012-01-25 18:10:29 +0100 |
commit | 1baaf2880f44fea4519f323e3da425318af6c688 (patch) | |
tree | 5cf2b82e7df032f474abdd39deeb18f9cf97e4fc /libindicator | |
parent | c26baddf8b8f8a290557f1a51d4e957bc95e45c1 (diff) | |
download | libayatana-indicator-1baaf2880f44fea4519f323e3da425318af6c688.tar.gz libayatana-indicator-1baaf2880f44fea4519f323e3da425318af6c688.tar.bz2 libayatana-indicator-1baaf2880f44fea4519f323e3da425318af6c688.zip |
IndicatorObject: update object parent in any case.
Diffstat (limited to 'libindicator')
-rw-r--r-- | libindicator/indicator-object.c | 12 |
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); } } |