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



commit 04d57064a9e3aa25adce622ea799eda7631e583a
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 76271e4..103f261 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]