summaryrefslogtreecommitdiffstats
path: root/src/gui/CoreConnector.vala
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2010-06-17 16:23:15 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2010-06-17 16:23:15 +0200
commit0671f09eb9c44aae49bb438a19a1de3abd1c0202 (patch)
tree8e081dc433fbeb784ddeef8f46b51ab9a107a0e1 /src/gui/CoreConnector.vala
parentbdaae5b6704e29919ec7f284b9e3abe54f96f2f8 (diff)
downloadephraim-0671f09eb9c44aae49bb438a19a1de3abd1c0202.tar
ephraim-0671f09eb9c44aae49bb438a19a1de3abd1c0202.zip
Improved interaction between core and GUI
Diffstat (limited to 'src/gui/CoreConnector.vala')
-rw-r--r--src/gui/CoreConnector.vala6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/CoreConnector.vala b/src/gui/CoreConnector.vala
index 08ed43f..9edbc7d 100644
--- a/src/gui/CoreConnector.vala
+++ b/src/gui/CoreConnector.vala
@@ -40,7 +40,9 @@ public class CoreConnector {
Erl.Node node = Erl.Node("ephraim-gtk", "magiccookie", 0);
Erl.Connection con = node.connect("ephraim-core@avalon.local");
- con.reg_send("ephraim", Erl.mk_self_pid(node));
+ Erl.Term self = Erl.mk_self_pid(node);
+
+ con.reg_send("ephraim", Erl.format("{register_ui,~w}", self));
while(running) {
TermStore response = new TermStore();
@@ -62,6 +64,8 @@ public class CoreConnector {
}
}
+ con.reg_send("ephraim", Erl.format("{unregister_ui,~w}", self));
+
return null;
}