[gnome-control-center] online-accounts: Add a Calendar group
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] online-accounts: Add a Calendar group
- Date: Thu, 9 Jun 2016 13:53:46 +0000 (UTC)
commit 9067983174b25dc64ccc1a46cdf69491e40dc5a1
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Jun 8 17:09:13 2016 +0200
online-accounts: Add a Calendar group
This will be useful when we add a CalDAV provider.
https://bugzilla.gnome.org/show_bug.cgi?id=767401
.../cc-online-accounts-add-account-dialog.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/panels/online-accounts/cc-online-accounts-add-account-dialog.c
b/panels/online-accounts/cc-online-accounts-add-account-dialog.c
index 7b184c8..8436922 100644
--- a/panels/online-accounts/cc-online-accounts-add-account-dialog.c
+++ b/panels/online-accounts/cc-online-accounts-add-account-dialog.c
@@ -35,6 +35,7 @@
struct _GoaPanelAddAccountDialogPrivate
{
GtkListBox *branded_list_box;
+ GtkListBox *calendar_list_box;
GtkListBox *contacts_list_box;
GtkListBox *mail_list_box;
GtkListBox *chat_list_box;
@@ -43,6 +44,7 @@ struct _GoaPanelAddAccountDialogPrivate
GoaClient *client;
GoaObject *object;
GoaProvider *provider;
+ GtkWidget *calendar_grid;
GtkWidget *contacts_grid;
GtkWidget *mail_grid;
GtkWidget *chat_grid;
@@ -326,6 +328,12 @@ goa_panel_add_account_dialog_init (GoaPanelAddAccountDialog *add_account)
_("Mail"));
add_account_dialog_create_group_ui (add_account,
+ &priv->calendar_list_box,
+ &priv->calendar_grid,
+ grid,
+ _("Calendar"));
+
+ add_account_dialog_create_group_ui (add_account,
&priv->contacts_list_box,
&priv->contacts_grid,
grid,
@@ -420,6 +428,11 @@ goa_panel_add_account_dialog_add_provider (GoaPanelAddAccountDialog *add_account
{
list_box = priv->branded_list_box;
}
+ else if ((features & GOA_PROVIDER_FEATURE_CALENDAR) != 0)
+ {
+ group_grid = priv->calendar_grid;
+ list_box = priv->calendar_list_box;
+ }
else if ((features & GOA_PROVIDER_FEATURE_CONTACTS) != 0)
{
group_grid = priv->contacts_grid;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]