summaryrefslogtreecommitdiffstats
path: root/src/gui/Ephraim.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/Ephraim.vala')
-rw-r--r--src/gui/Ephraim.vala9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gui/Ephraim.vala b/src/gui/Ephraim.vala
index c75d926..f13516e 100644
--- a/src/gui/Ephraim.vala
+++ b/src/gui/Ephraim.vala
@@ -15,16 +15,13 @@ public class Ephraim {
unowned Gtk.MenuItem quitItem = builder.get_object("MenuItemQuit") as Gtk.MenuItem;
quitItem.activate.connect(() => window.visible = false);
- unowned Gtk.VBox rosterView = builder.get_object("Roster") as Gtk.VBox;
+ unowned Gtk.TreeView rosterView = builder.get_object("Roster") as Gtk.TreeView;
Gee.TreeMap<string, Conversation> conversations = new Gee.TreeMap<string, Conversation>();
unowned Gtk.Notebook conversationNotebook = builder.get_object("Conversations") as Gtk.Notebook;
Roster roster = new Roster(rosterView);
- // FIXME
- string me = "/me";
-
CoreConnector coreconn = new CoreConnector();
roster.start_conversation.connect((jid) => coreconn.start_conversation(jid));
@@ -35,10 +32,10 @@ public class Ephraim {
Contact contact = roster.get_contact(jid);
if(contact != null) {
- conversations[jid] = new Conversation(conversationNotebook, me, jid, contact.display_string);
+ conversations[jid] = new Conversation(conversationNotebook, jid, contact.display_string);
}
else {
- conversations[jid] = new Conversation(conversationNotebook, me, jid, null);
+ conversations[jid] = new Conversation(conversationNotebook, jid, null);
}
conversations[jid].send_message.connect((type, message) => coreconn.send_message(jid, type, message));