wip.
authorPeng Huang <shawn.p.huang@gmail.com>
Wed, 20 Oct 2010 08:15:56 +0000 (17:15 +0900)
committerPeng Huang <shawn.p.huang@gmail.com>
Wed, 3 Nov 2010 01:54:58 +0000 (10:54 +0900)
bindings/vala/test/Makefile
bindings/vala/test/enchant.vala [moved from bindings/vala/test/test.vala with 97% similarity]

index edb9465..fc65585 100644 (file)
@@ -1,3 +1,3 @@
-ibus-engine-vala: test.vala
+ibus-engine-enchant: enchant.vala
        valac --vapidir .. --pkg ibus-1.0 --pkg enchant $^ -C
        valac -g --vapidir .. --pkg ibus-1.0 --pkg enchant $^ -o $@
similarity index 97%
rename from bindings/vala/test/test.vala
rename to bindings/vala/test/enchant.vala
index d957a6e..500cad2 100644 (file)
@@ -1,3 +1,4 @@
+/* vim:set et sts=4 ai: */
 using GLib;
 using Enchant;
 using IBus;
@@ -139,6 +140,12 @@ class TestEngine : Engine {
 
 void main (string []argv) {
     var bus = new Bus();
+    
+    if (!bus.is_connected ()) {
+        stderr.printf ("Can not connect to ibus-daemon!\n");
+        return;
+    }
+
     var factory = new Factory(bus.get_connection());
     factory.add_engine("vala-debug", typeof(TestEngine));
     var component = new Component (