summaryrefslogtreecommitdiff
path: root/mate-dictionary/src/main.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2011-12-14 10:13:54 +0100
committerStefano Karapetsas <[email protected]>2011-12-14 10:13:54 +0100
commitef0467789bfc8406b57ba553e4d59f4d6c3f9be8 (patch)
tree09d541636a16cb38448fe6183289ebdc3080c1bf /mate-dictionary/src/main.c
downloadmate-utils-ef0467789bfc8406b57ba553e4d59f4d6c3f9be8.tar.bz2
mate-utils-ef0467789bfc8406b57ba553e4d59f4d6c3f9be8.tar.xz
Moved from Mate-Extra repository
Diffstat (limited to 'mate-dictionary/src/main.c')
-rw-r--r--mate-dictionary/src/main.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/mate-dictionary/src/main.c b/mate-dictionary/src/main.c
new file mode 100644
index 00000000..f6dcc94d
--- /dev/null
+++ b/mate-dictionary/src/main.c
@@ -0,0 +1,24 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <libintl.h>
+
+#include "gdict-app.h"
+
+int main (int argc, char *argv[])
+{
+ bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ textdomain (GETTEXT_PACKAGE);
+
+ gdict_init (&argc, &argv);
+
+ gdict_main ();
+
+ gdict_cleanup ();
+
+ return EXIT_SUCCESS;
+}