diff options
Diffstat (limited to 'languages/cpp/app_templates/gnome2mmapp/gnome2mm.cpp')
-rw-r--r-- | languages/cpp/app_templates/gnome2mmapp/gnome2mm.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/languages/cpp/app_templates/gnome2mmapp/gnome2mm.cpp b/languages/cpp/app_templates/gnome2mmapp/gnome2mm.cpp new file mode 100644 index 00000000..be1ab196 --- /dev/null +++ b/languages/cpp/app_templates/gnome2mmapp/gnome2mm.cpp @@ -0,0 +1,22 @@ +%{CC_TEMPLATE} + +#include <config.h> +#include <gnome--/main.h> +#include <libgnome/gnome-i18n.h> + +#include "main_window.h" + +int main(int argc, char **argv) +{ +#if defined(ENABLE_NLS) + bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); + textdomain (GETTEXT_PACKAGE); +#endif //ENABLE_NLS + + Gnome::Main m(PACKAGE, VERSION, argc, argv); + + main_window *main_window = new class main_window(); + m.run(); + delete main_window; + return 0; +} |