[gnome-control-center] online-accounts: handle unbranded chat providers



commit 570611752e1bf1a0cf01f2581ec03525381066bd
Author: Marco Barisione <marco barisione collabora co uk>
Date:   Thu Jul 25 13:08:58 2013 +0100

    online-accounts: handle unbranded chat providers
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706148

 .../cc-online-accounts-add-account-dialog.c        |   12 ++++++++++++
 1 files changed, 12 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 7672e7c..df4dd59 100644
--- a/panels/online-accounts/cc-online-accounts-add-account-dialog.c
+++ b/panels/online-accounts/cc-online-accounts-add-account-dialog.c
@@ -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;
@@ -345,6 +347,12 @@ goa_panel_add_account_dialog_init (GoaPanelAddAccountDialog *add_account)
                                       _("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,
                                       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;


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