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 | |
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
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | src/indicator-session.c | 18 |
2 files changed, 23 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index d335e8e..4801a63 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +indicator-session (0.1.5-0ubuntu1~ppa2~launch3) UNRELEASED; urgency=low + + * Starting *all* the services + + -- Ted Gould <ted@ubuntu.com> Mon, 28 Sep 2009 15:56:27 -0500 + indicator-session (0.1.5-0ubuntu1~ppa2~launch2) karmic; urgency=low * Getting a little crazy in here. 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; } |