From 3eb7e7688dea39fa83f41c1f9aba79a962ef1a15 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 25 Jun 2010 04:36:06 +0200 Subject: Create conversation tabs for new conversations --- src/gui/Roster.vala | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gui/Roster.vala') diff --git a/src/gui/Roster.vala b/src/gui/Roster.vala index f25584c..72134e6 100644 --- a/src/gui/Roster.vala +++ b/src/gui/Roster.vala @@ -25,7 +25,15 @@ public class Roster : Object, Gtk.TreeModel { else row_changed(path, iter); } + + public Contact get_contact(string jid) { + string bareJID = jid.split("/", 2)[0]; + + stdout.printf("Getting Contact for %s\n", bareJID); + return entries[bareJID]; + } + public Type get_column_type (int index) { switch(index) { case 0: -- cgit v1.2.3