From bdaae5b6704e29919ec7f284b9e3abe54f96f2f8 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 17 Jun 2010 13:07:17 +0200 Subject: Added CMake build system --- src/gui/Ephraim.vala | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/gui/Ephraim.vala (limited to 'src/gui/Ephraim.vala') diff --git a/src/gui/Ephraim.vala b/src/gui/Ephraim.vala new file mode 100644 index 0000000..a52c4df --- /dev/null +++ b/src/gui/Ephraim.vala @@ -0,0 +1,27 @@ +public class Ephraim { + public static int main(string[] args) { + Gtk.init(ref args); + + 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; + } +} -- cgit v1.2.3