aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLaurent Contzen <lcontzen@gmail.com>2012-07-04 17:59:15 +0800
committerLaurent Contzen <lcontzen@gmail.com>2012-07-23 15:48:42 +0800
commit87511314e60d6a9c67caaed5d5fd2e3f2f3657c8 (patch)
tree4fae80b9a44c02e2f572cf486f87591ed1e64636 /tests
parent3ba0b1109440fc6b1bd7f196c14aa5fe44ff1884 (diff)
downloadgsoc2013-empathy-87511314e60d6a9c67caaed5d5fd2e3f2f3657c8.tar
gsoc2013-empathy-87511314e60d6a9c67caaed5d5fd2e3f2f3657c8.tar.gz
gsoc2013-empathy-87511314e60d6a9c67caaed5d5fd2e3f2f3657c8.tar.bz2
gsoc2013-empathy-87511314e60d6a9c67caaed5d5fd2e3f2f3657c8.tar.lz
gsoc2013-empathy-87511314e60d6a9c67caaed5d5fd2e3f2f3657c8.tar.xz
gsoc2013-empathy-87511314e60d6a9c67caaed5d5fd2e3f2f3657c8.tar.zst
gsoc2013-empathy-87511314e60d6a9c67caaed5d5fd2e3f2f3657c8.zip
empathy-roster-view: start using empathy-roster-model
https://bugzilla.gnome.org/show_bug.cgi?id=680302
Diffstat (limited to 'tests')
-rw-r--r--tests/interactive/test-empathy-roster-view.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/interactive/test-empathy-roster-view.c b/tests/interactive/test-empathy-roster-view.c
index d0f739d71..6ab56c836 100644
--- a/tests/interactive/test-empathy-roster-view.c
+++ b/tests/interactive/test-empathy-roster-view.c
@@ -1,5 +1,8 @@
#include <config.h>
+#include <libempathy-gtk/empathy-roster-model.h>
+#include <libempathy-gtk/empathy-roster-model-manager.h>
+
#include <libempathy-gtk/empathy-roster-view.h>
#include <libempathy-gtk/empathy-ui-utils.h>
@@ -84,6 +87,7 @@ main (int argc,
EmpathyIndividualManager *mgr;
GError *error = NULL;
GOptionContext *context;
+ EmpathyRosterModel *model;
gtk_init (&argc, &argv);
empathy_gtk_init ();
@@ -105,8 +109,10 @@ main (int argc,
mgr = empathy_individual_manager_dup_singleton ();
- view = empathy_roster_view_new (mgr);
+ model = EMPATHY_ROSTER_MODEL (empathy_roster_model_manager_new (mgr));
+ view = empathy_roster_view_new (mgr, model);
+ g_object_unref (model);
g_signal_connect (view, "individual-activated",
G_CALLBACK (individual_activated_cb), NULL);
g_signal_connect (view, "popup-individual-menu",