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
This commit is contained in:
parent
0129d8a6ae
commit
9067983174
1 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||
|
@ -325,6 +327,12 @@ goa_panel_add_account_dialog_init (GoaPanelAddAccountDialog *add_account)
|
|||
grid,
|
||||
_("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,
|
||||
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue