Wat updatetjes om de GUI iets intuitiever te maken.
[sgc.git] / singleword / main.c
blob9993b5704c7a453bfcd9eba8a5d5d9d27e85aa3a
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 g_thread_init(NULL);
35 /* connect signal handlers */
36 glade_xml_signal_autoconnect(xml);
38 g_thread_create((GThreadFunc)sound_init, NULL, FALSE, NULL);
40 gtk_main();
42 removeRecordings();
43 return 0;