Fix make dist errors.

Review URL: https://codereview.appspot.com/8850043
Use EXTRA_DIST instead of DIST_SOURCES.

Review URL: https://codereview.appspot.com/8698047
Implement embed_preedit_text.

BUG=http://code.google.com/p/ibus/issues/detail?id=1606

Review URL: https://codereview.appspot.com/8112044
Check GtkIMContext:input-purpose to disable IM on lock screen

Recent GtkIMContext has "input-purpose" property, which can be used to check if the target widget is a password entry, in a more reliable way.

BUG=none
R=Shawn.P.Huang@gmail.com

Review URL: https://codereview.appspot.com/7064059
Defalut triggers key is changed to <Super>space.

We have been used <Control>space as the default triggers key.
GNOME3 and Windows7 applied <Super>space as the default trigger key
and IBus follows it for the consistent key between desktops.

BUG=RH#953404

Review URL: https://codereview.appspot.com/9081043
Add man files of /usr/bin files.

Review URL: https://codereview.appspot.com/9413043
Let users know the default hotkey is Super+space with libnotify.

Review URL: https://codereview.appspot.com/9407043
Delete ibus.desktop

This is not an actual application, it just starts the daemon in the
background.  That's not something that should be in the application
list.  It should be started in the background when necessary.

BUG=http://code.google.com/p/ibus/issues/detail?id=1628

Review URL: https://codereview.appspot.com/9833043
Patch from Colin Walters <walters@verbum.org>.
Remove g_type_init() calls.

https://git.gnome.org/browse/glib/commit/?id=1dc774a653e992e1153fbed16f90097fa8db467f
https://git.gnome.org/browse/vala/commit/?id=f1fbafdfdc91fadaa57d2e073fc29cc6804d6ae3

Review URL: https://codereview.appspot.com/9727047
build: improve test harness

Run each test in isolated directory so it can run in parallel.  Also
improve the test wrapper and rename it to a better name.

BUG=

Review URL: https://codereview.appspot.com/9937047
Suppress warnings with Automake 1.13

The make variable INCLUDES is now obsoleted by AM_CPPFLAGS.

BUG=
R=Shawn.P.Huang@gmail.com

Review URL: https://codereview.appspot.com/9915054
Fix an error message of gnome-autogen in autogen.sh

BUG=http://code.google.com/p/ibus/issues/detail?id=1631

Review URL: https://codereview.appspot.com/10167044
Modify valac --target-glib.

valac --ccode --target-glib=2.36 can disable g_type_init in the
generated C files since g_type_init is deprecated in glib 2.36.
But ibus tarball includes C files so that users do not require
vala and vala versions are different between dist and build.
If dist could have glib 2.36 to generate the ibus tarball but
a user build would have glib 2.34, the user build would be
failed because glib 2.34 requires g_type_init.
This change makes sure the target-glib is minimum of the glib
version for ibus.

Review URL: https://codereview.appspot.com/10156044
Make ibus-config tests side effect free

Previously we assumed that test cases are executed in the order of
registration.  This is no longer true after glib change 89aa9dbd which
fixed test case grouping.  Clear the default match rule in each test
case to avoid side effect.

BUG=

Review URL: https://codereview.appspot.com/10069045
Refactor old getter and setter to dbus property in bus/ibusimpl.c

Review URL: https://codereview.appspot.com/9477043
Delete the python xdg dependency.

BUG=RH#980749

Review URL: https://codereview.appspot.com/10930043
Load the system registry cache prior to the user one.

gnome-settings-daemon runs ibus-daemon after the user configures
any input method engines and causes a delay to show the engines
on UI because no cache exists for ibus-daemon.
The system cache can avoid the user timing.

Review URL: https://codereview.appspot.com/10364043
Delete xdg in ibus-setup.

Review URL: https://codereview.appspot.com/11100044
build: fix make check

This contains several fixes to the current tests:

- Remove glib mem profiler call from src/tests, which is known not to
  work with the latest glib release:
  https://bugzilla.gnome.org/show_bug.cgi?id=701694
  valgrind could be used instead.

- Replace g_type_init() call in tests with ibus_init().

- Fix ibus-bus test after the DBus property change (commit 458945e7).
  no global engine may be set in the test environment.  Also add more
  assertions to check the return values.

- Fix pygobject test to use LOG_COMPILER and move sys.path adjustment
  into the test script itself.

- Add new files to po/POTFILES.in.

BUG=
R=takao.fujiwara1@gmail.com

Review URL: https://codereview.appspot.com/11156043
registry: use binary format instead of XML for cache

Currently the registry cache is in the XML format, that may cause
unnecessary parsing overhead on ibus-daemon startup.  This patch
changes the format to GVariant based binary representation.

BUG=
R=takao.fujiwara1@gmail.com

Review URL: https://codereview.appspot.com/9963043