summaryrefslogtreecommitdiffstats
path: root/src/gui/Ephraim.vala
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2010-07-28 00:00:37 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2010-07-28 00:00:37 +0200
commit00e8a7d9d07e87a31e3086c2e2e3f71107cbafdb (patch)
tree744876c3c6fd953e9c1edd25fc580c95ceee6fcc /src/gui/Ephraim.vala
parent69aaef2680ff5c96b34ad983b665a80c06c20224 (diff)
downloadephraim-00e8a7d9d07e87a31e3086c2e2e3f71107cbafdb.tar
ephraim-00e8a7d9d07e87a31e3086c2e2e3f71107cbafdb.zip
Revised roster groups (still unfinished)
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));