summaryrefslogtreecommitdiffstats
path: root/gui/Ephraim.vala
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2010-06-17 02:23:53 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2010-06-17 02:23:53 +0200
commitca7a0bfa5dd63fc45df0a46800a76d7048e70f2b (patch)
tree9af785b9d1171999b5894251c88146faac1366fe /gui/Ephraim.vala
parentc3354ad1fd4f843d80ebdd290c8dbaf81919ca38 (diff)
downloadephraim-ca7a0bfa5dd63fc45df0a46800a76d7048e70f2b.tar
ephraim-ca7a0bfa5dd63fc45df0a46800a76d7048e70f2b.zip
Started writing GUI
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;
+ }
+}