229 |
|
|
230 |
Gtk::Main kit(argc, argv); |
Gtk::Main kit(argc, argv); |
231 |
|
|
232 |
#ifdef __APPLE__ |
#if HAVE_GETTEXT && defined(__APPLE__) |
233 |
// Gtk::Main binds the gtk locale to a possible non-existent |
// Gtk::Main binds the gtk locale to a possible non-existent |
234 |
// directory. If we have bundled gtk locale files, we rebind here, |
// directory. If we have bundled gtk locale files, we rebind here, |
235 |
// after the Gtk::Main constructor. |
// after the Gtk::Main constructor. |
350 |
const char* argv_c[] = { "gigedit" }; |
const char* argv_c[] = { "gigedit" }; |
351 |
char** argv = const_cast<char**>(argv_c); |
char** argv = const_cast<char**>(argv_c); |
352 |
Gtk::Main main_loop(argc, argv); |
Gtk::Main main_loop(argc, argv); |
353 |
#ifdef __APPLE__ |
#if HAVE_GETTEXT && defined(__APPLE__) |
354 |
if (!gigedit_localedir.empty()) { |
if (!gigedit_localedir.empty()) { |
355 |
bindtextdomain("gtk20", gigedit_localedir.c_str()); |
bindtextdomain("gtk20", gigedit_localedir.c_str()); |
356 |
} |
} |