aboutsummaryrefslogtreecommitdiff
path: root/src/backend-dbus
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-07-12 07:42:07 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-07-12 07:42:07 -0500
commita19955f3f81b1a5eb8fc928bc5dcf8a24bb6833f (patch)
tree54b1593439a2ef0e69d30a3b8cb891d865db9d31 /src/backend-dbus
parentc9352cd0a8363e4508d19e66ccf373b2abb2b7d3 (diff)
downloadayatana-indicator-session-a19955f3f81b1a5eb8fc928bc5dcf8a24bb6833f.tar.gz
ayatana-indicator-session-a19955f3f81b1a5eb8fc928bc5dcf8a24bb6833f.tar.bz2
ayatana-indicator-session-a19955f3f81b1a5eb8fc928bc5dcf8a24bb6833f.zip
add the online-accounts action and unit tests for it
Diffstat (limited to 'src/backend-dbus')
-rw-r--r--src/backend-dbus/actions.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/backend-dbus/actions.c b/src/backend-dbus/actions.c
index ed1e708..9030ca7 100644
--- a/src/backend-dbus/actions.c
+++ b/src/backend-dbus/actions.c
@@ -311,6 +311,9 @@ on_webcredentials_proxy_ready (GObject * o G_GNUC_UNUSED, GAsyncResult * res, gp
g_signal_connect_swapped (webcredentials, "notify::error-status",
G_CALLBACK(indicator_session_actions_notify_has_online_account_error), gself);
+
+ if (webcredentials_get_error_status (webcredentials))
+ indicator_session_actions_notify_has_online_account_error (gself);
}
log_and_clear_error (&err, G_STRLOC, G_STRFUNC);
@@ -715,6 +718,12 @@ my_settings (IndicatorSessionActions * self G_GNUC_UNUSED)
}
static void
+my_online_accounts (IndicatorSessionActions * self G_GNUC_UNUSED)
+{
+ run_outside_app ("gnome-control-center credentials");
+}
+
+static void
my_about (IndicatorSessionActions * self G_GNUC_UNUSED)
{
run_outside_app ("gnome-control-center info");
@@ -855,6 +864,7 @@ indicator_session_actions_dbus_class_init (IndicatorSessionActionsDbusClass * kl
actions_class->reboot = my_reboot;
actions_class->power_off = my_power_off;
actions_class->settings = my_settings;
+ actions_class->online_accounts = my_online_accounts;
actions_class->help = my_help;
actions_class->about = my_about;
actions_class->switch_to_screensaver = my_switch_to_screensaver;