Use macro VERION
authorPeng Huang <shawn.p.huang@gmail.com>
Sun, 25 Apr 2010 12:28:31 +0000 (20:28 +0800)
committerPeng Huang <shawn.p.huang@gmail.com>
Sun, 25 Apr 2010 12:28:31 +0000 (20:28 +0800)
src/Main.cc

index 6650660..c53f44b 100644 (file)
@@ -1,5 +1,8 @@
 /* vim:set et sts=4: */
 
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
 #include <ibus.h>
 #include <stdlib.h>
 #include <locale.h>
@@ -54,7 +57,7 @@ start_component (void)
 
     component = ibus_component_new ("org.freedesktop.IBus.Pinyin",
                                     N_("Pinyin input method"),
-                                    "0.1.0",
+                                    VERSION,
                                     "GPL",
                                     "Peng Huang <shawn.p.huang@gmail.com>",
                                     "http://code.google.com/p/ibus/",