summaryrefslogtreecommitdiffstats
path: root/gui/Ephraim.vala
diff options
context:
space:
mode:
Diffstat (limited to 'gui/Ephraim.vala')
-rw-r--r--gui/Ephraim.vala31
1 files changed, 31 insertions, 0 deletions
diff --git a/gui/Ephraim.vala b/gui/Ephraim.vala
new file mode 100644
index 0000000..d05e449
--- /dev/null
+++ b/gui/Ephraim.vala
@@ -0,0 +1,31 @@
+using Gtk;
+
+
+public class Ephraim {
+ public static int main(string[] args) {
+ Gtk.init(ref args);
+ Erl.init();
+
+ Gtk.Builder builder = new Gtk.Builder();
+ try {
+ builder.add_from_file("ephraim.glade");
+ } catch(Error e) {
+ return 1;
+ }
+
+ CoreConnector coreconn = new CoreConnector();
+
+ if(!coreconn.start())
+ return 1;
+
+ unowned Gtk.Window window = builder.get_object("MainWindow") as Gtk.Window;
+ window.hide.connect(Gtk.main_quit);
+ window.show();
+
+ Gtk.main();
+
+ coreconn.stop();
+
+ return 0;
+ }
+}