]> git.0d.be Git - empathy.git/blobdiff - tests/interactive/test-empathy-dual-roster-view.c
roster-view: inherit from GtkListBox
[empathy.git] / tests / interactive / test-empathy-dual-roster-view.c
index 74bb59f1797ecebaee28c9bc3001f0bf0ea44a1c..0d4b889d3dfa4edda5efdbf66311c0e9f85bfe1d 100644 (file)
@@ -18,6 +18,7 @@ individual_activated_cb (EmpathyRosterView *self,
 
 static void
 popup_individual_menu_cb (EmpathyRosterView *self,
+    const gchar *group,
     FolksIndividual *individual,
     guint button,
     guint time,
@@ -25,8 +26,8 @@ popup_individual_menu_cb (EmpathyRosterView *self,
 {
   GtkWidget *menu, *item;
 
-  g_print ("'%s' popup menu\n",
-      folks_alias_details_get_alias (FOLKS_ALIAS_DETAILS (individual)));
+  g_print ("'%s' (group: %s) popup menu\n",
+      folks_alias_details_get_alias (FOLKS_ALIAS_DETAILS (individual)), group);
 
   menu = gtk_menu_new ();
 
@@ -93,16 +94,15 @@ create_view_box (EmpathyRosterModel *model,
   empathy_roster_view_show_offline (EMPATHY_ROSTER_VIEW (view), show_offline);
   empathy_roster_view_show_groups (EMPATHY_ROSTER_VIEW (view), show_groups);
 
-  search = empathy_live_search_new (view);
+  search = tpaw_live_search_new (view);
   empathy_roster_view_set_live_search (EMPATHY_ROSTER_VIEW (view),
-      EMPATHY_LIVE_SEARCH (search));
+      TPAW_LIVE_SEARCH (search));
 
   scrolled = gtk_scrolled_window_new (NULL, NULL);
   gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled),
       GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
 
-  egg_list_box_add_to_scrolled (EGG_LIST_BOX (view),
-      GTK_SCROLLED_WINDOW (scrolled));
+  gtk_container_add (GTK_CONTAINER (scrolled), view);
 
   gtk_box_pack_start (GTK_BOX (box), search, FALSE, TRUE, 0);
   gtk_box_pack_start (GTK_BOX (box), scrolled, TRUE, TRUE, 0);