diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-02-06 15:37:38 -0500 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-02-06 15:37:38 -0500 |
commit | f9f86fbfa558e83d8591fbec43e95dcb5cc34584 (patch) | |
tree | 12dba699c331e5d0cb95ccc83d5b099daa98145f /libindicator/indicator-object.c | |
parent | 8ff25e5375c3a0cb399fa687bf541f1cc0f4a020 (diff) | |
download | libayatana-indicator-f9f86fbfa558e83d8591fbec43e95dcb5cc34584.tar.gz libayatana-indicator-f9f86fbfa558e83d8591fbec43e95dcb5cc34584.tar.bz2 libayatana-indicator-f9f86fbfa558e83d8591fbec43e95dcb5cc34584.zip |
indicator-ng: try to restart the service when it crashes
This uses a (slightly) awkward heuristic: when the well-known name vanishes
from the session bus, it only restarts the service when it didn't explicitly
hide the indicator before.
Diffstat (limited to 'libindicator/indicator-object.c')
-rw-r--r-- | libindicator/indicator-object.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libindicator/indicator-object.c b/libindicator/indicator-object.c index ba2d377..30a6543 100644 --- a/libindicator/indicator-object.c +++ b/libindicator/indicator-object.c @@ -935,3 +935,10 @@ set_property (GObject * object, } } +gboolean +indicator_object_entry_is_visible (IndicatorObject * io, IndicatorObjectEntry * entry) +{ + g_return_val_if_fail (INDICATOR_IS_OBJECT (io), FALSE); + + return entry_get_private (io, entry)->visibility == ENTRY_VISIBLE; +} |