aboutsummaryrefslogtreecommitdiffstats
path: root/nautilus-sendto-plugin
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 /nautilus-sendto-plugin
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 'nautilus-sendto-plugin')
-rw-r--r--nautilus-sendto-plugin/empathy-nautilus-sendto.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/nautilus-sendto-plugin/empathy-nautilus-sendto.c b/nautilus-sendto-plugin/empathy-nautilus-sendto.c
index f93088952..fcfc28215 100644
--- a/nautilus-sendto-plugin/empathy-nautilus-sendto.c
+++ b/nautilus-sendto-plugin/empathy-nautilus-sendto.c
@@ -34,6 +34,8 @@
#include <libempathy/empathy-ft-factory.h>
#include <libempathy/empathy-ft-handler.h>
+#include <libempathy-gtk/empathy-roster-model.h>
+#include <libempathy-gtk/empathy-roster-model-manager.h>
#include <libempathy-gtk/empathy-contact-chooser.h>
#include <libempathy-gtk/empathy-ui-utils.h>
#include <libempathy-gtk/empathy-roster-view.h>
@@ -111,12 +113,16 @@ get_contacts_widget (NstPlugin *plugin)
{
GtkWidget *roster_view, *box, *scrolled;
EmpathyIndividualManager *mgr;
-
+ EmpathyRosterModel *model;
+
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
mgr = empathy_individual_manager_dup_singleton ();
- roster_view = empathy_roster_view_new (mgr);
+ model = EMPATHY_ROSTER_MODEL (empathy_roster_model_manager_new (mgr));
+ roster_view = empathy_roster_view_new (mgr, model);
+ g_object_unref (model);
+
scrolled = gtk_scrolled_window_new (NULL, NULL);
g_object_unref (mgr);