remove debug
[sgc.git] / singleword / main.c
blob1d0ca117fe8419008b68698375d465707ff41476
1 #include "singleword.h"
2 #include "praat.h"
3 #include "config.h"
6 GladeXML *xml = NULL;
8 int main(int argc, char **argv)
10 gtk_init(&argc, &argv);
12 bindtextdomain(g_get_application_name(), LOCALEDIR);
14 /* textdomain(g_get_application_name());
16 * This makes the application use a standard domain,
17 * instead of a changing program name. For example
18 * on win32 it will be sgc.exe
21 textdomain("singleword");
23 xml = glade_xml_new(GLADESOURCE, NULL, g_get_application_name());
25 if (xml == NULL) {
26 g_error(_("Could not open the GUI!"));
27 return -1;
28 } else {
29 configOpen();
31 removeRecordings();
33 if (!g_thread_supported()) {
34 g_thread_init(NULL);
37 /* connect signal handlers */
38 glade_xml_signal_autoconnect(xml);
40 g_thread_create((GThreadFunc)sound_init, NULL, FALSE, NULL);
42 gtk_main();
44 removeRecordings();
45 return 0;