diff options
author | Ted Gould <ted@canonical.com> | 2009-09-28 15:56:11 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-09-28 15:56:11 -0500 |
commit | 1f32472486b4148225736fa256ff060471dee486 (patch) | |
tree | dd81634dbfd9fb0d6f97ff1a9c2d594469d2486e /src | |
parent | b8e0182839512f896fd7cce12aee4eedd2d00683 (diff) | |
download | ayatana-indicator-session-1f32472486b4148225736fa256ff060471dee486.tar.gz ayatana-indicator-session-1f32472486b4148225736fa256ff060471dee486.tar.bz2 ayatana-indicator-session-1f32472486b4148225736fa256ff060471dee486.zip |
Oops, forgot to choose a service.
Diffstat (limited to 'src')
-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; } |