aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-07-12 10:14:12 -0500
committerTed Gould <ted@gould.cx>2011-07-12 10:14:12 -0500
commitb412bfe918592d1986743e52d967205395788da3 (patch)
treef401349fa94d7b048a2056f038a5d9a3127f8c01
parent0c3a68569683c34c08ae9bf8183bcd360c175fb7 (diff)
downloadlibayatana-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.c8
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