Added an untested fix for global vs local wordlists
[sgc.git] / main.c
blob37226d3e6b4ee0df4aa7a0cb76c908505fa67d9e
1 #include "sgc.h"
2 #include "praat.h"
4 GladeXML *xml = NULL;
6 int main(int argc, char **argv)
8 gtk_init(&argc, &argv);
10 bindtextdomain(g_get_application_name(), LOCALEDIR);
12 /* textdomain(g_get_application_name());
14 * This makes the application use a standard domain,
15 * instead of a changing program name. For example
16 * on win32 it will be sgc.exe
19 textdomain("sgc");
21 xml = glade_xml_new(GLADESOURCE, NULL, g_get_application_name());
23 if (xml == NULL) {
24 g_error(_("Could not open the GUI!"));
25 return -1;
26 } else {
27 if (!g_thread_supported()) {
28 g_thread_init(NULL);
31 /* connect signal handlers */
32 glade_xml_signal_autoconnect(xml);
34 on_windowMain_realize(NULL, NULL);
36 g_thread_create((GThreadFunc)sound_init, NULL, FALSE, NULL);
38 removeRecordings();
40 gtk_main();
42 removeRecordings();
44 setBase(NULL);
45 setFile(NULL);
47 return 0;