diff options
Diffstat (limited to 'src/gui/Ephraim.vala')
-rw-r--r-- | src/gui/Ephraim.vala | 27 |
1 files changed, 27 insertions, 0 deletions
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; + } +} |