diff options
author | Ted Gould <ted@gould.cx> | 2011-07-12 10:14:12 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-07-12 10:14:12 -0500 |
commit | b412bfe918592d1986743e52d967205395788da3 (patch) | |
tree | f401349fa94d7b048a2056f038a5d9a3127f8c01 | |
parent | 0c3a68569683c34c08ae9bf8183bcd360c175fb7 (diff) | |
download | libayatana-indicator-b412bfe918592d1986743e52d967205395788da3.tar.gz libayatana-indicator-b412bfe918592d1986743e52d967205395788da3.tar.bz2 libayatana-indicator-b412bfe918592d1986743e52d967205395788da3.zip |
Adding in a property for being in replace mode
-rw-r--r-- | libindicator/indicator-service.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libindicator/indicator-service.c b/libindicator/indicator-service.c index e5eaa5b..0e87332 100644 --- a/libindicator/indicator-service.c +++ b/libindicator/indicator-service.c @@ -57,6 +57,7 @@ struct _IndicatorServicePrivate { GHashTable * watchers; guint this_service_version; guint dbus_registration; + gboolean replace_mode; }; /* Signals Stuff */ @@ -192,6 +193,7 @@ indicator_service_init (IndicatorService *self) priv->this_service_version = 0; priv->timeout_length = 500; priv->dbus_registration = 0; + priv->replace_mode = FALSE; const gchar * timeoutenv = g_getenv("INDICATOR_SERVICE_SHUTDOWN_TIMEOUT"); if (timeoutenv != NULL) { @@ -202,6 +204,12 @@ indicator_service_init (IndicatorService *self) } } + const gchar * replaceenv = g_getenv("INDICATOR_SERVICE_REPLACE_MODE"); + if (replaceenv != NULL) { + priv->replace_mode = TRUE; + g_debug("Putting into replace mode"); + } + /* NOTE: We're using g_free here because that's what needs to happen, but you really should call watchers_remove first as well since that disconnects the signals. We can't do that with a callback |