Support inline input (pre-edit,surrounding-text), Fix https://github.com/linuxmint/Cinnamon/issues/1071

Fix https://github.com/linuxmint/Cinnamon/issues/1071.

Please also merge 
![ibus3](https://f.cloud.github.com/assets/1858413/99658/39456f38-67a7-11e2-97ed-fe0e4f01bf35.png)
: https://github.com/linuxmint/muffin/pull/65

Before.
![ibus](https://f.cloud.github.com/assets/1858413/99656/1c481412-67a7-11e2-9d52-578f02bceea2.png)

If merge https://github.com/linuxmint/muffin/pull/65 to muffin;
![ibus2](https://f.cloud.github.com/assets/1858413/99657/2f5054fc-67a7-11e2-97bd-291244ea2752.png)

If merge this;
![ibus3](https://f.cloud.github.com/assets/1858413/99659/3d6b78a0-67a7-11e2-901c-3f1191ea77d6.png)