]> git.0d.be Git - empathy.git/blobdiff - megaphone/src/megaphone-applet.c
Add a property to have or not groups on EmpathyContactListStore
[empathy.git] / megaphone / src / megaphone-applet.c
index c4e56da6e7cad3644d280491c10b35dcd2247b4e..5c499ac269b858922b6c3be4773a3f756f557326 100644 (file)
@@ -358,15 +358,15 @@ megaphone_applet_show_preferences (MegaphoneApplet *applet)
 
        /* Show all contacts, even offline and sort alphabetically */
        contact_manager = empathy_contact_manager_new ();
-       contact_store = empathy_contact_list_store_new (EMPATHY_CONTACT_LIST (contact_manager));
+       contact_store = empathy_contact_list_store_new (EMPATHY_CONTACT_LIST (contact_manager), TRUE);
        g_object_set (contact_store,
                      "is-compact", TRUE,
                      "show-avatars", TRUE,
                      "show-offline", TRUE,
                      "sort-criterium", EMPATHY_CONTACT_LIST_STORE_SORT_NAME,
                      NULL);
-       contact_list = empathy_contact_list_view_new (contact_store);
-       gtk_tree_view_expand_all (GTK_TREE_VIEW (contact_list));
+       contact_list = empathy_contact_list_view_new (contact_store,
+                                                     EMPATHY_CONTACT_LIST_FEATURE_NONE);
        g_object_unref (contact_manager);
        g_object_unref (contact_store);
        gtk_widget_show (GTK_WIDGET (contact_list));
@@ -395,7 +395,7 @@ megaphone_applet_information_cb (BonoboUIComponent *uic,
 
        /* FIXME: We should grey out the menu item if there are no available contact */
        if (priv->contact) {
-               empathy_contact_information_dialog_show (priv->contact, NULL, FALSE);
+               empathy_contact_information_dialog_show (priv->contact, NULL, FALSE, FALSE);
        }
 }