summaryrefslogtreecommitdiffstats
path: root/src/gui/Ephraim.vala
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2010-06-21 23:12:44 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2010-06-21 23:12:44 +0200
commitb9145a8161071bee25c6c1c026fbc2381bdfa0bb (patch)
treec4bedf170c6d6cb110c37086b9d864ac8e80522e /src/gui/Ephraim.vala
parent0671f09eb9c44aae49bb438a19a1de3abd1c0202 (diff)
downloadephraim-b9145a8161071bee25c6c1c026fbc2381bdfa0bb.tar
ephraim-b9145a8161071bee25c6c1c026fbc2381bdfa0bb.zip
Show roster
Diffstat (limited to 'src/gui/Ephraim.vala')
-rw-r--r--src/gui/Ephraim.vala14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/gui/Ephraim.vala b/src/gui/Ephraim.vala
index a52c4df..cf87965 100644
--- a/src/gui/Ephraim.vala
+++ b/src/gui/Ephraim.vala
@@ -9,14 +9,24 @@ public class Ephraim {
return 1;
}
- CoreConnector coreconn = new CoreConnector();
+ Roster roster = new Roster();
+ CoreConnector coreconn = new CoreConnector(roster);
if(!coreconn.start())
return 1;
unowned Gtk.Window window = builder.get_object("MainWindow") as Gtk.Window;
window.hide.connect(Gtk.main_quit);
- window.show();
+
+ unowned Gtk.MenuItem quitItem = builder.get_object("MenuItemQuit") as Gtk.MenuItem;
+ quitItem.activate.connect(() => window.visible = false);
+
+ unowned Gtk.TreeView rosterView = builder.get_object("Roster") as Gtk.TreeView;
+ rosterView.set_model(roster.get_default_group());
+
+ rosterView.append_column(new Gtk.TreeViewColumn.with_attributes("Contact", new CellRendererContact(), "contact", 0, null));
+
+ window.visible = true;
Gtk.main();