22 |
#include <gtkmm/main.h> |
#include <gtkmm/main.h> |
23 |
#include "mainwindow.h" |
#include "mainwindow.h" |
24 |
|
|
25 |
#include <libintl.h> |
#include "global.h" |
|
#include <config.h> |
|
26 |
|
|
27 |
// the app has to work from a DLL as well, so we hard code argv |
// the app has to work from a DLL as well, so we hard code argv |
28 |
int argc = 1; |
int argc = 1; |
37 |
std::cout << "Initializing 3rd party services needed by gigedit.\n" |
std::cout << "Initializing 3rd party services needed by gigedit.\n" |
38 |
<< std::flush; |
<< std::flush; |
39 |
setlocale(LC_ALL, ""); |
setlocale(LC_ALL, ""); |
40 |
|
|
41 |
|
#if HAVE_GETTEXT |
42 |
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR); |
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR); |
43 |
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); |
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); |
44 |
textdomain(GETTEXT_PACKAGE); |
textdomain(GETTEXT_PACKAGE); |
45 |
|
#endif // HAVE_GETTEXT |
46 |
|
|
47 |
// make sure thread_init() is called once and ONLY once per process |
// make sure thread_init() is called once and ONLY once per process |
48 |
if (!Glib::thread_supported()) Glib::thread_init(); |
if (!Glib::thread_supported()) Glib::thread_init(); |
49 |
|
|