[gnome-calendar] source-dialog: open online account when row is activated



commit 10e032f510a4aab389e3ac0f37fc8def42c63aad
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri May 1 10:18:11 2015 -0300

    source-dialog: open online account when row is activated

 src/gcal-source-dialog.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index 3de5476..6da9c86 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);
     }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]