From 10e032f510a4aab389e3ac0f37fc8def42c63aad Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Fri, 1 May 2015 10:18:11 -0300 Subject: [PATCH] source-dialog: open online account when row is activated --- src/gcal-source-dialog.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c index 3de5476f..6da9c86d 100644 --- a/src/gcal-source-dialog.c +++ b/src/gcal-source-dialog.c @@ -699,6 +699,16 @@ online_accounts_listbox_row_activated (GtkListBox *box, } else { + GoaAccount *account = g_object_get_data (G_OBJECT (row), "goa-account"); + gchar *id; + + g_return_if_fail (GOA_IS_ACCOUNT (account)); + + id = goa_account_dup_id (account); + + spawn_goa_with_args (id, NULL); + + g_free (id); } }