blob: d05e4491030c8dd58450462cb6a009a207046bae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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;
}
}
|