diff options
author | Ted Gould <ted@canonical.com> | 2009-09-28 15:56:52 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-09-28 15:56:52 -0500 |
commit | a35a7df5f8cbfe5ca277e8282989dc59d9d4ae7b (patch) | |
tree | f58b3163f6d6f203df750c06638de11e99983d28 /src/indicator-session.c | |
parent | 7988f91ae2f476f96e81ed0a8aa4f4462321ee0f (diff) | |
parent | 1f32472486b4148225736fa256ff060471dee486 (diff) | |
download | ayatana-indicator-session-a35a7df5f8cbfe5ca277e8282989dc59d9d4ae7b.tar.gz ayatana-indicator-session-a35a7df5f8cbfe5ca277e8282989dc59d9d4ae7b.tar.bz2 ayatana-indicator-session-a35a7df5f8cbfe5ca277e8282989dc59d9d4ae7b.zip |
Starting *all* the services
Diffstat (limited to 'src/indicator-session.c')
-rw-r--r-- | src/indicator-session.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c index 470f442..64c7bc8 100644 --- a/src/indicator-session.c +++ b/src/indicator-session.c @@ -455,7 +455,23 @@ start_service (gpointer userdata) return TRUE; } - org_freedesktop_DBus_start_service_by_name_async (proxy, INDICATOR_SESSION_DBUS_NAME, 0 /* Flags */, start_service_phase2, userdata); + const gchar * service = NULL; + switch (GPOINTER_TO_INT(userdata)) { + case STATUS_SECTION: + service = INDICATOR_STATUS_DBUS_NAME; + break; + case USERS_SECTION: + service = INDICATOR_USERS_DBUS_NAME; + break; + case SESSION_SECTION: + service = INDICATOR_SESSION_DBUS_NAME; + break; + default: + g_critical("Oh, how can we get a value that we don't know!"); + return FALSE; + } + + org_freedesktop_DBus_start_service_by_name_async (proxy, service, 0 /* Flags */, start_service_phase2, userdata); return FALSE; } |