online-accounts: handle unbranded chat providers
https://bugzilla.gnome.org/show_bug.cgi?id=706148
This commit is contained in:
parent
e9e895704f
commit
570611752e
1 changed files with 12 additions and 0 deletions
|
@ -38,6 +38,7 @@ struct _GoaPanelAddAccountDialogPrivate
|
|||
GtkListBox *branded_list_box;
|
||||
GtkListBox *contacts_list_box;
|
||||
GtkListBox *mail_list_box;
|
||||
GtkListBox *chat_list_box;
|
||||
GtkListBox *ticketing_list_box;
|
||||
GError *error;
|
||||
GoaClient *client;
|
||||
|
@ -46,6 +47,7 @@ struct _GoaPanelAddAccountDialogPrivate
|
|||
GtkListStore *list_store;
|
||||
GtkWidget *contacts_grid;
|
||||
GtkWidget *mail_grid;
|
||||
GtkWidget *chat_grid;
|
||||
GtkWidget *ticketing_grid;
|
||||
GtkWidget *stack;
|
||||
gboolean add_other;
|
||||
|
@ -344,6 +346,12 @@ goa_panel_add_account_dialog_init (GoaPanelAddAccountDialog *add_account)
|
|||
grid,
|
||||
_("Contacts"));
|
||||
|
||||
add_account_dialog_create_group_ui (add_account,
|
||||
&priv->chat_list_box,
|
||||
&priv->chat_grid,
|
||||
grid,
|
||||
_("Chat"));
|
||||
|
||||
add_account_dialog_create_group_ui (add_account,
|
||||
&priv->ticketing_list_box,
|
||||
&priv->ticketing_grid,
|
||||
|
@ -439,6 +447,10 @@ goa_panel_add_account_dialog_add_provider (GoaPanelAddAccountDialog *add_account
|
|||
group_grid = priv->mail_grid;
|
||||
list_box = priv->mail_list_box;
|
||||
break;
|
||||
case GOA_PROVIDER_GROUP_CHAT:
|
||||
group_grid = priv->chat_grid;
|
||||
list_box = priv->chat_list_box;
|
||||
break;
|
||||
case GOA_PROVIDER_GROUP_TICKETING:
|
||||
group_grid = priv->ticketing_grid;
|
||||
list_box = priv->ticketing_list_box;
|
||||
|
|
Loading…
Add table
Reference in a new issue