From f9f86fbfa558e83d8591fbec43e95dcb5cc34584 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Wed, 6 Feb 2013 15:37:38 -0500 Subject: 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. --- libindicator/indicator-object.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libindicator/indicator-object.c') 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; +} -- cgit v1.2.3