summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/gnome2mmapp/gnome2mm.cc
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/app_templates/gnome2mmapp/gnome2mm.cc')
-rw-r--r--languages/cpp/app_templates/gnome2mmapp/gnome2mm.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/languages/cpp/app_templates/gnome2mmapp/gnome2mm.cc b/languages/cpp/app_templates/gnome2mmapp/gnome2mm.cc
new file mode 100644
index 00000000..8a33b9ff
--- /dev/null
+++ b/languages/cpp/app_templates/gnome2mmapp/gnome2mm.cc
@@ -0,0 +1,22 @@
+%{CC_TEMPLATE}
+
+#include <config.h>
+#include <gnome--/main.h>
+#include <libgnome/gnome-i18n.h>
+
+#include "main_window.hh"
+
+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;
+}