platform/upstream/ibus.git
12 years agoCreate simple engine
Peng Huang [Mon, 5 Dec 2011 19:21:00 +0000 (14:21 -0500)]
Create simple engine

12 years agoUse g_list_free_full to simplified some code.
Peng Huang [Wed, 30 Nov 2011 21:37:39 +0000 (16:37 -0500)]
Use g_list_free_full to simplified some code.

12 years agoPort gtk_im_context_simple_add_table to libibus.
Peng Huang [Wed, 30 Nov 2011 20:46:52 +0000 (15:46 -0500)]
Port gtk_im_context_simple_add_table to libibus.

12 years agoIntegrate IBusEngineSimple from ibus-xkb project.
Peng Huang [Wed, 30 Nov 2011 20:01:34 +0000 (15:01 -0500)]
Integrate IBusEngineSimple from ibus-xkb project.

12 years agowip
Peng Huang [Mon, 28 Nov 2011 23:25:10 +0000 (18:25 -0500)]
wip

12 years agoWIP implement register_properties and set_property
Peng Huang [Mon, 28 Nov 2011 23:08:27 +0000 (18:08 -0500)]
WIP implement register_properties and set_property

12 years agoFix a valac warning
Peng Huang [Mon, 28 Nov 2011 16:55:29 +0000 (11:55 -0500)]
Fix a valac warning

12 years agoRemove switchertest.vala
Peng Huang [Mon, 28 Nov 2011 16:30:22 +0000 (11:30 -0500)]
Remove switchertest.vala

12 years agoWIP make engine switch hotkey work
Peng Huang [Mon, 28 Nov 2011 00:57:08 +0000 (19:57 -0500)]
WIP make engine switch hotkey work

12 years agoWIP implement engine switcher popup ui
Peng Huang [Sun, 27 Nov 2011 05:21:02 +0000 (00:21 -0500)]
WIP implement engine switcher popup ui

12 years agowip
Peng Huang [Fri, 25 Nov 2011 22:28:31 +0000 (17:28 -0500)]
wip

12 years agoUse XI2 in keybindingmanager.
Peng Huang [Fri, 25 Nov 2011 19:17:51 +0000 (14:17 -0500)]
Use XI2 in keybindingmanager.

12 years agowip
Peng Huang [Thu, 24 Nov 2011 23:13:00 +0000 (18:13 -0500)]
wip

12 years agoFix src/Makefile.am to install ibuskeysym-compat.h
Peng Huang [Thu, 24 Nov 2011 18:27:44 +0000 (13:27 -0500)]
Fix src/Makefile.am to install ibuskeysym-compat.h

12 years agoRename ibus keysyms.
Peng Huang [Thu, 24 Nov 2011 16:55:26 +0000 (11:55 -0500)]
Rename ibus keysyms.

12 years agoRemove enable status of input context and hotkey logic in ibus-daemon
Peng Huang [Tue, 16 Aug 2011 11:26:42 +0000 (07:26 -0400)]
Remove enable status of input context and hotkey logic in ibus-daemon

12 years agoFix gir annotations.
fujiwarat [Thu, 16 Feb 2012 04:04:05 +0000 (13:04 +0900)]
Fix gir annotations.

- It seems python does not allow to use 'exec' as a variable.
Renamed 'exec' property so that the constructor in IBus.Component is used.
- It seems the python virtual method is available when the function is
described in header files in case that annotations are needed so
the signal function ibus_factory_create_engine is added newly.

TEST=Linux desktop

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

12 years agoFix typoes in gtk-doc comments.
Daiki Ueno [Tue, 14 Feb 2012 01:45:20 +0000 (10:45 +0900)]
Fix typoes in gtk-doc comments.

BUG=none
TEST=manually

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

12 years agoFix typo.
fujiwarat [Mon, 13 Feb 2012 07:03:13 +0000 (16:03 +0900)]
Fix typo.

BUG=http://code.google.com/p/ibus/issues/detail?id=1388
TEST=Linux desktop

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

12 years agoDon't look for ibus-1.0.pc when generating GIR.
Daiki Ueno [Mon, 13 Feb 2012 04:56:44 +0000 (13:56 +0900)]
Don't look for ibus-1.0.pc when generating GIR.

BUG=http://lists.alioth.debian.org/pipermail/pkg-ime-devel/2012-February/001778.html
TEST=manually

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

12 years agoRelease 1.4.1. 1.4.1
Peng Huang [Sun, 5 Feb 2012 14:04:22 +0000 (09:04 -0500)]
Release 1.4.1.

BUG=None
TEST=Make dist

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

12 years agoFix typoes and remove Encoding from desktop files.
Peng Huang [Thu, 2 Feb 2012 05:28:42 +0000 (00:28 -0500)]
Fix typoes and remove Encoding from desktop files.

BUG=None
TEST=None

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

12 years agoMinor fixes related to git.mk.
Daiki Ueno [Wed, 1 Feb 2012 01:00:42 +0000 (10:00 +0900)]
Minor fixes related to git.mk.

Remove .gitignore files from the git repo, define GITIGNOREFILES in some
Makefiles, and update git.mk from the Behdad upstream.

BUG=none
TEST=manually

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

12 years agoGenerate vapi from gir instead of gi.
Daiki Ueno [Wed, 1 Feb 2012 00:59:37 +0000 (09:59 +0900)]
Generate vapi from gir instead of gi.

BUG=none
TEST=manually on Fedora 16

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

12 years agoMinor fixes when generating GIR.
Daiki Ueno [Tue, 31 Jan 2012 03:56:27 +0000 (12:56 +0900)]
Minor fixes when generating GIR.

BUG=none
TEST=manually

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

12 years agodconf: preserve names under /desktop/ibus/engine/bopomofo.
Daiki Ueno [Mon, 30 Jan 2012 03:29:48 +0000 (12:29 +0900)]
dconf: preserve names under /desktop/ibus/engine/bopomofo.

BUG=none
TEST=manually on Fedora 16

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

12 years agoFix the GIR annotation of ibus_bus_get_global_engine #2.
fujiwarat [Sun, 29 Jan 2012 01:32:01 +0000 (10:32 +0900)]
Fix the GIR annotation of ibus_bus_get_global_engine #2.

BUG=none
TEST=Linux desktop

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

12 years agoFix the GIR annotation of ibus_bus_get_global_engine.
fujiwarat [Fri, 27 Jan 2012 02:16:52 +0000 (11:16 +0900)]
Fix the GIR annotation of ibus_bus_get_global_engine.

BUG=none
TEST=Linux_desktop

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

12 years agoFix the return value in IBusEngine.process_key_event with signal.
fujiwarat [Thu, 26 Jan 2012 02:09:33 +0000 (11:09 +0900)]
Fix the return value in IBusEngine.process_key_event with signal.

BUG=none
TEST=Linux_desktop

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

12 years agoAdd a dconf option to inhibit dconf name conversion.
Daiki Ueno [Thu, 26 Jan 2012 01:27:27 +0000 (10:27 +0900)]
Add a dconf option to inhibit dconf name conversion.

BUG=https://code.google.com/p/ibus/issues/detail?id=1395
TEST=manually with ibus-hangul and ibus-skk on Fedora 16

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

12 years agoRename ibus_engine_new_type with ibus_engine_new_with_type.
fujiwarat [Tue, 24 Jan 2012 02:06:19 +0000 (11:06 +0900)]
Rename ibus_engine_new_type with ibus_engine_new_with_type.

seed assigns GType in IBus.Engine.type and also assignes "*_new_foo"
method in IBus.Engine.foo so renamed the function.

BUG=http://code.google.com/p/ibus/issues/detail?id=1397
TEST=Linux_desktop with seed and gjs

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

12 years agoAdd G_GNUC_PRINTF for function ibus_text_new_from_printf(), so compiler can check...
Peng Huang [Fri, 6 Jan 2012 15:17:10 +0000 (10:17 -0500)]
Add G_GNUC_PRINTF for function ibus_text_new_from_printf(), so compiler can check arguments.

BUG=None
TEST=Manually

Review URL: http://codereview.appspot.com/5519047

12 years agoFix g-ir-scanner errors in ibusproperty.h and ibustext.h.
fujiwarat [Sat, 31 Dec 2011 00:55:20 +0000 (09:55 +0900)]
Fix g-ir-scanner errors in ibusproperty.h and ibustext.h.

BUG=none
TEST=Linux desktop

Review URL: http://codereview.appspot.com/5498091

12 years agoFix a typo in docs/references/ibus/Makefile
Peng Huang [Thu, 22 Dec 2011 14:59:05 +0000 (09:59 -0500)]
Fix a typo in docs/references/ibus/Makefile

BUG=None
TEST=make

Review URL: http://codereview.appspot.com/5496079

12 years agoAdd ibus_text_set_attributes for scipt language bindings.
Peng Huang [Thu, 22 Dec 2011 14:57:23 +0000 (09:57 -0500)]
Add ibus_text_set_attributes for scipt language bindings.

BUG=None
TEST=Linux desktop

Review URL: http://codereview.appspot.com/5500067

12 years agoMake all fields of IBusProperty as gobject property.
Peng Huang [Thu, 22 Dec 2011 14:57:01 +0000 (09:57 -0500)]
Make all fields of IBusProperty as gobject property.

BUG=http://code.google.com/p/ibus/issues/detail?id=1383
TEST=Linux desktop

Review URL: http://codereview.appspot.com/5500066

12 years agoFix a SEGV if ibusimcontext->ibuscontext is null.
fujiwarat [Tue, 20 Dec 2011 04:46:45 +0000 (13:46 +0900)]
Fix a SEGV if ibusimcontext->ibuscontext is null.

BUG=
TEST=Linux desktop

Review URL: http://codereview.appspot.com/5489086

12 years agoUpdate translations.
fujiwarat [Wed, 14 Dec 2011 00:55:26 +0000 (09:55 +0900)]
Update translations.

po/LINGUAS: Updated
po/ ca.po da.po de.po es.po fr.po hu.po ja.po pa.po te.po zh_TW.po: Updated
po/ fa.po lv.po tg.po: Added

BUG=
TEST=Linux desktop

Review URL: http://codereview.appspot.com/5483055

12 years agoAdd the engine preference button on ibus-setup
fujiwarat [Wed, 30 Nov 2011 03:28:22 +0000 (12:28 +0900)]
Add the engine preference button on ibus-setup

The new preference button launches $libexecdir/ibus-setup- + engine.name
by default. The engine is IBusEngineDesc.
If engine.setup has a value, the button launches it instead.

BUG=RH#618229
TEST=Linux desktop

Review URL: http://codereview.appspot.com/5437062

12 years agoDisable surrounding-text when retrieve-surrounding signal is not handled in GTK.
Daiki Ueno [Wed, 30 Nov 2011 00:40:15 +0000 (09:40 +0900)]
Disable surrounding-text when retrieve-surrounding signal is not handled in GTK.

BUG=https://code.google.com/p/ibus/issues/detail?id=1358
TEST=On Fedora with ibus-m17n tis820

Review URL: http://codereview.appspot.com/5431086

12 years agoUse ibus_input_context_process_key_event_async in ibus-x11
fujiwarat [Mon, 21 Nov 2011 02:06:21 +0000 (11:06 +0900)]
Use ibus_input_context_process_key_event_async in ibus-x11

ibus-hangul calls ibus_commit_text() in process_key_event with
returing FALSE. ibus_commit_text() is async API and there is a
time issue in ibus_commit_text() and returning process_key_event.
This fix adds async in ibus-x11 process_key_event too.

BUG=RH#753781
TEST=Linux desktop

Review URL: http://codereview.appspot.com/5417044

12 years agoFixed fallback icons.
fujiwarat [Tue, 8 Nov 2011 01:48:42 +0000 (10:48 +0900)]
Fixed fallback icons.

1. Set 'ibus-keyboard' icon for IME off in non-GNOME theme.
People would think the application icon for non-GNONE classic desktop.
The themed icon is applied for GNOME icon theme only.

2. Set gtk-fallback-icon-theme as 'gnome'
ibus gtk panel needs gtk stock icons but some desktop does not load GNOME
icon theme. I assigned 'gnome' for gtk-fallback-icon-theme if it's none.

3. Use 'gtk-dialog-info' if 'gtk-info' is not found.
It seems the latest gtk2 does not have 'gtk-info' icon via pygtk2.

BUG=RH#711632
TEST=Linux desktop

Review URL: http://codereview.appspot.com/5320066

12 years agoRerotate next/previous engines without global engine.
fujiwarat [Wed, 2 Nov 2011 05:17:50 +0000 (14:17 +0900)]
Rerotate next/previous engines without global engine.

BUG=http://code.google.com/p/ibus/issues/detail?id=1331
TEST=Linux desktop

Review URL: http://codereview.appspot.com/5321067

12 years agoDon't set focus on GTK password entry.
Daiki Ueno [Fri, 28 Oct 2011 06:42:08 +0000 (15:42 +0900)]
Don't set focus on GTK password entry.

For an old bug:
https://bugzilla.redhat.com/show_bug.cgi?id=484643
Input method should be disabled on password entry for security reason.

BUG=none
TEST=manually with gtk-demo "Entry Buffer" example

Review URL: http://codereview.appspot.com/5319053

12 years agoFix previous_engine without global engine.
fujiwarat [Tue, 25 Oct 2011 01:50:34 +0000 (10:50 +0900)]
Fix previous_engine without global engine.

BUG=http://code.google.com/p/ibus/issues/detail?id=1331
TEST=Linux desktop

Review URL: http://codereview.appspot.com/5297047

12 years agoAdd ibusutil.h in ibus.h
fujiwarat [Tue, 25 Oct 2011 01:37:22 +0000 (10:37 +0900)]
Add ibusutil.h in ibus.h

BUG=http://code.google.com/p/ibus/issues/detail?id=1338
TEST=Linux desktop

Review URL: http://codereview.appspot.com/5294054

12 years agoAlways consume a hotkey press
Yusuke Sato [Sun, 9 Oct 2011 04:52:42 +0000 (13:52 +0900)]
Always consume a hotkey press

BUG=1324

Review URL: http://codereview.appspot.com/5242044

12 years agoFix hiding button items in GTK panel.
Daiki Ueno [Thu, 29 Sep 2011 03:24:53 +0000 (12:24 +0900)]
Fix hiding button items in GTK panel.

BUG=none
TEST=manual

Review URL: http://codereview.appspot.com/5148041

12 years agoRelease 1.4.0 1.4.0
Peng Huang [Fri, 23 Sep 2011 15:11:24 +0000 (11:11 -0400)]
Release 1.4.0

BUG=None
TEST=make dist

Review URL: http://codereview.appspot.com/5106043

12 years agoFix make distcheck error
Peng Huang [Fri, 23 Sep 2011 15:10:53 +0000 (11:10 -0400)]
Fix make distcheck error

BUG=None
TEST=make distcheck

Review URL: http://codereview.appspot.com/5113041

12 years agoFix dconf profile installation.
Daiki Ueno [Wed, 21 Sep 2011 01:00:17 +0000 (10:00 +0900)]
Fix dconf profile installation.

BUG=none
TEST=manual

Review URL: http://codereview.appspot.com/5077042

12 years agoAdd some warning message in ibustext.c
Peng Huang [Sun, 18 Sep 2011 14:39:09 +0000 (10:39 -0400)]
Add some warning message in ibustext.c

BUG=None
TEST=Linux desktop

Review URL: http://codereview.appspot.com/5051043

12 years agoRefine configure.ac and fix make distcheck errors.
Peng Huang [Sun, 18 Sep 2011 14:36:02 +0000 (10:36 -0400)]
Refine configure.ac and fix make distcheck errors.

BUG=None
TEST=Test on Linux desktop

Review URL: http://codereview.appspot.com/5045043

12 years agoAdd get methods for the members in IBusAttribute for non-C language.
fujiwarat [Fri, 16 Sep 2011 14:36:44 +0000 (23:36 +0900)]
Add get methods for the members in IBusAttribute for non-C language.

TEST=Linux desktop

Review URL: http://codereview.appspot.com/4956068

12 years agoImplement org.freedesktop.DBus.StartServiceByName.
Daiki Ueno [Fri, 16 Sep 2011 01:22:38 +0000 (10:22 +0900)]
Implement org.freedesktop.DBus.StartServiceByName.

BUG=none
TEST=tested with https://github.com/ueno/ibus-gucharmap/tree/charmap-service

Review URL: http://codereview.appspot.com/4960060

12 years agoFix make dist error if dsettings does not exist.
Peng Huang [Fri, 9 Sep 2011 13:47:37 +0000 (09:47 -0400)]
Fix make dist error if dsettings does not exist.

BUG=make dist failed without gsettings
TEST=make dist

Review URL: http://codereview.appspot.com/4994043

12 years agoDo not send surrounding text to ibus-daemon if engine does not need surrounding text.
Peng Huang [Fri, 9 Sep 2011 02:09:26 +0000 (22:09 -0400)]
Do not send surrounding text to ibus-daemon if engine does not need surrounding text.

BUG=None
TEST=Linux desktop

Review URL: http://codereview.appspot.com/4977058

12 years agoAdd Disable signal when bus_ibus_impl_set_context_engine_from_desc is called.
fujiwarat [Thu, 25 Aug 2011 00:59:42 +0000 (09:59 +0900)]
Add Disable signal when bus_ibus_impl_set_context_engine_from_desc is called.

BUG=#1261
TEST=Linux desktop

Review URL: http://codereview.appspot.com/4875049

12 years agoCheck if BusInputContext has an enabled engine in global input method.
fujiwarat [Wed, 24 Aug 2011 02:44:21 +0000 (11:44 +0900)]
Check if BusInputContext has an enabled engine in global input method.

BUG=RH#731610
TEST=Linux desktop

Review URL: http://codereview.appspot.com/4917041

12 years agoUse GVariant as attachment for IBusSerializable.
Peng Huang [Fri, 19 Aug 2011 12:23:33 +0000 (08:23 -0400)]
Use GVariant as attachment for IBusSerializable.

BUG=None
TEST=Linux desktop

Review URL: http://codereview.appspot.com/4902051

12 years agoFix for ibus_serializable_{get,set}_attachment.
Tsuyoshi Horo [Thu, 18 Aug 2011 15:48:30 +0000 (11:48 -0400)]
Fix for ibus_serializable_{get,set}_attachment.

TEST=Linux desktop

Review URL: http://codereview.appspot.com/4905054
Patch from Tsuyoshi Horo <horo@chromium.org>.

12 years agoAdd create-engine signal in IBusFactory for non-C applications.
fujiwarat [Sat, 13 Aug 2011 23:56:31 +0000 (08:56 +0900)]
Add create-engine signal in IBusFactory for non-C applications.

TEST=Linux desktop

Separated from CL #4853041.

Review URL: http://codereview.appspot.com/4801081

12 years agoPort keyval and unicode converting functions from gtk.
Peng Huang [Fri, 12 Aug 2011 01:13:28 +0000 (21:13 -0400)]
Port keyval and unicode converting functions from gtk.

BUG=None
TEST=None

Review URL: http://codereview.appspot.com/4870042

12 years agoSupport selection text retrival.
Seigo Nonaka [Fri, 12 Aug 2011 00:53:13 +0000 (20:53 -0400)]
Support selection text retrival.

This patch enable us to get selection text on client application.
Currently only GtkTextView widget can get them in gtk application.

BUG=None
TEST=manually done.(By gedit text editor)

Review URL: http://codereview.appspot.com/4844041
Patch from Seigo Nonaka <nona@chromium.org>.

12 years agoAdd missing config.h in gdk-private.c
Peng Huang [Fri, 12 Aug 2011 00:23:18 +0000 (20:23 -0400)]
Add missing config.h in gdk-private.c

Forget include config.h in gdk-private.c. So the HAVE_X11_XKBLIB_H is always undefined, and ibux-x11 can not get correct group from x key event.

BUG=ibus-x11 can not handle group correctly
TEST=Linux desktop

Review URL: http://codereview.appspot.com/4865041

12 years agoFix make rpm errors
Peng Huang [Thu, 11 Aug 2011 01:46:27 +0000 (21:46 -0400)]
Fix make rpm errors

BUG=make rpm failed in fedora
TEST=make rpm in fedora

Review URL: http://codereview.appspot.com/4862041

12 years agoAlways enable the new focused BusInputContext
Peng Huang [Sat, 23 Jul 2011 01:23:41 +0000 (09:23 +0800)]
Always enable the new focused BusInputContext

BUG=http://crosbug.com/17013
TEST=On ChromeOS

Review URL: http://codereview.appspot.com/4816047

12 years agoAdd ibus-dconf.
Daiki Ueno [Mon, 18 Jul 2011 09:44:23 +0000 (18:44 +0900)]
Add ibus-dconf.

BUG=https://code.google.com/p/ibus/issues/detail?id=1235
TEST=manually with "make check" and interactive testing

Review URL: http://codereview.appspot.com/4750041

12 years agoFix GObject ref/unref issues.
Daiki Ueno [Fri, 15 Jul 2011 00:51:07 +0000 (09:51 +0900)]
Fix GObject ref/unref issues.

BUG=none
TEST=manual

Review URL: http://codereview.appspot.com/4700048

12 years agoFixed an error in IBus.Bus.register_component
fujiwarat [Tue, 12 Jul 2011 06:14:59 +0000 (15:14 +0900)]
Fixed an error in IBus.Bus.register_component

TEST=Linux desktop

Review URL: http://codereview.appspot.com/4668060

12 years agoUse g_variant_dup_string for consistency.
Yusuke Sato [Tue, 12 Jul 2011 05:04:30 +0000 (14:04 +0900)]
Use g_variant_dup_string for consistency.

This fix is similar to https://github.com/ibus/ibus/commit/624c4451da2bd171bd8ac53a9b9dd2a4227ef67f .

BUG=None
TEST=None

Review URL: http://codereview.appspot.com/4641101

12 years agoRemove the callback on destroy.
Yusuke Sato [Mon, 11 Jul 2011 02:55:19 +0000 (11:55 +0900)]
Remove the callback on destroy.

BUG=crosbug.com/17293
TEST=src/tests/ibus-bus.c

Review URL: http://codereview.appspot.com/4675074

12 years agoFix several GVariant related issues. And remove a wrong unref.
Peng Huang [Thu, 7 Jul 2011 16:42:52 +0000 (12:42 -0400)]
Fix several GVariant related issues. And remove a wrong unref.

BUG=None
TEST=Linux desktop

Review URL: http://codereview.appspot.com/4667067

12 years agoFix SEGV in ibus_keymap_lookup_keysym
Peng Huang [Tue, 5 Jul 2011 17:11:41 +0000 (13:11 -0400)]
Fix SEGV in ibus_keymap_lookup_keysym

TEST=Linux desktop

Review URL: http://codereview.appspot.com/4636083

12 years agoAdd org.freedesktop.IBus.Config.GetValues to get all values in one RPC.
Peng Huang [Tue, 5 Jul 2011 14:45:20 +0000 (10:45 -0400)]
Add org.freedesktop.IBus.Config.GetValues to get all values in one RPC.

BUG=http://crosbug.com/16287
TEST=Linux desktop

Review URL: http://codereview.appspot.com/4667056

12 years agoFix make dpkg errors.
Peng Huang [Mon, 4 Jul 2011 04:26:03 +0000 (12:26 +0800)]
Fix make dpkg errors.

BUG=None
TEST=Make dpkg

Review URL: http://codereview.appspot.com/4673041

12 years agoFix BusEngineProxy instance leak.
Peng Huang [Sun, 3 Jul 2011 19:27:23 +0000 (03:27 +0800)]
Fix BusEngineProxy instance leak.

BUG=none
TEST=manually with / without global-engine setting

Review URL: http://codereview.appspot.com/4662043

12 years agoAdd icon_symbol property in IBusEngineDesc.
Peng Huang [Sun, 3 Jul 2011 19:24:47 +0000 (03:24 +0800)]
Add icon_symbol property in IBusEngineDesc.

TEST=Linux desktop

Review URL: http://codereview.appspot.com/4648050

12 years agoStore capabilities when ibuscontext is not ready yet.
Kazuhiro Inaba [Sat, 18 Jun 2011 04:10:36 +0000 (00:10 -0400)]
Store capabilities when ibuscontext is not ready yet.

Due to the asynchronous creation of contexts, gtk_im_set_use_preedit may
be called before the context is ready. This patch is to
record the change of capability flag and enables to set it
later in _create_input_context_done.

BUG=http://crosbug.com/16500
TEST=ChromeOS Cr-48

Review URL: http://codereview.appspot.com/4635049
Patch from Kazuhiro Inaba <kinaba@chromium.org>.

12 years agoSimplify surrounding-text initialization.
Daiki Ueno [Sat, 18 Jun 2011 04:03:07 +0000 (00:03 -0400)]
Simplify surrounding-text initialization.

Currently the immodule tries to retrieve surrounding-text unconditionally
on focus_in and enabled.  These calls could be eliminated if engine were
able to proclaim that it will need surrounding-text.

This patch extends ibus_engine_get_surrounding_text() to allow this.
Engines that need surrounding-text are expected to have:

    /* Indicate we will use surrounding-text. */
    ibus_engine_get_surrounding_text (engine, NULL, NULL);

in their enable() method.  This would work because enable() is called before
SetCapabilities DBus call.

BUG=none
TEST=manually with ibus-m17n, with the above change.

Review URL: http://codereview.appspot.com/4613043
Patch from Daiki Ueno <daiki.ueno@gmail.com>.

12 years agoRestore cursor location when a new IBusInputContext is created.
Peng Huang [Sat, 18 Jun 2011 03:46:31 +0000 (23:46 -0400)]
Restore cursor location when a new IBusInputContext is created.

BUG=http://crosbug.com/16500
TEST=Linux desktop

Review URL: http://codereview.appspot.com/4635044

12 years agoFix some fuction signatures to make ibus g-i firendly.
Peng Huang [Thu, 16 Jun 2011 19:46:46 +0000 (15:46 -0400)]
Fix some fuction signatures to make ibus g-i firendly.

BUG=None
TEST=Test on Linux desktop

Review URL: http://codereview.appspot.com/4517146

12 years agoFix make dpkg errors.
Peng Huang [Thu, 16 Jun 2011 17:13:01 +0000 (13:13 -0400)]
Fix make dpkg errors.

BUG=make dpkg failed
TEST=make dpkg

Review URL: http://codereview.appspot.com/4629044

12 years agoCheck IBUS_CONFIG_HOME environment variable when reading/writing the socket file.
Yusuke Sato [Thu, 16 Jun 2011 16:12:06 +0000 (01:12 +0900)]
Check IBUS_CONFIG_HOME environment variable when reading/writing the socket file.

BUG=crosbug.com/16501
TEST=export IBUS_CONFIG_HOME=/tmp, start Chrome on Chromium OS, verify an empty dir /tmp/ibus/bus exists with mode 0700, log in, enable IME, verify IME works, verify the socket file is created in /tmp/ibus/bus.

Review URL: http://codereview.appspot.com/4621043

12 years agoAdd IBUS_ERROR domain and reply IBUS_ERROR_NO_ENGINE in org.freedesktop.IBus.InputCon...
Peng Huang [Wed, 15 Jun 2011 14:38:17 +0000 (10:38 -0400)]
Add IBUS_ERROR domain and reply IBUS_ERROR_NO_ENGINE in org.freedesktop.IBus.InputContext.GetEngine

BUG=None
TEST=Manually

Review URL: http://codereview.appspot.com/4528140

12 years agoFix some race condition between idle and timeout events. Also fix a memory leak.
Peng Huang [Mon, 13 Jun 2011 17:18:29 +0000 (13:18 -0400)]
Fix some race condition between idle and timeout events. Also fix a memory leak.

BUG=http://crosbug.com/16387
TEST=Linux desktop

Review URL: http://codereview.appspot.com/4568072

12 years agoAdd functions for creating IBusConfig asynchronously.
Peng Huang [Thu, 9 Jun 2011 01:11:28 +0000 (21:11 -0400)]
Add functions for creating IBusConfig asynchronously.

BUG=http://crosbug.com/13245
TEST=make check

Review URL: http://codereview.appspot.com/4581041

12 years agoMerge pull request #2 from ryoqun/master
Peng Huang [Wed, 8 Jun 2011 14:21:50 +0000 (07:21 -0700)]
Merge pull request #2 from ryoqun/master

ibus python binding wasn't working due to incorrect forward-key-event signature

12 years agoFix Python input context binding.
Peng Huang [Mon, 6 Jun 2011 13:30:27 +0000 (09:30 -0400)]
Fix Python input context binding.

Export "forward-key-event" and "delete-surrounding-text" signals to Python; clear __needs_surrounding_text property on "enabled" and "disabled" signals.

BUG=none
TEST=briefly tested, at least I don't see any regression

Review URL: http://codereview.appspot.com/4437062

13 years agoFix build warnings with gcc 4.6
Peng Huang [Thu, 2 Jun 2011 12:30:34 +0000 (08:30 -0400)]
Fix build warnings with gcc 4.6

BUG=Build warnings with gcc 4.6
TEST=Manually

Review URL: http://codereview.appspot.com/4517127

13 years agoSend the new capabilities to ibus-daemon in ibus_im_context_set_use_preedit.
Yusuke Sato [Wed, 1 Jun 2011 14:37:14 +0000 (23:37 +0900)]
Send the new capabilities to ibus-daemon in ibus_im_context_set_use_preedit.

BUG=none
TEST=none

Review URL: http://codereview.appspot.com/4529103

13 years agoUpdate translations.
fujiwarat [Mon, 16 May 2011 05:51:45 +0000 (14:51 +0900)]
Update translations.

Update da.po ja.po nl.po pl.po te.po uk.po zh_CN.po

13 years agofix wrong forward key event signature
Ryo Onodera [Tue, 17 May 2011 11:07:40 +0000 (20:07 +0900)]
fix wrong forward key event signature

13 years agoFix build warnings with gcc 4.6
Peng Huang [Wed, 11 May 2011 01:59:15 +0000 (21:59 -0400)]
Fix build warnings with gcc 4.6

BUG=crosbug.com/15039
TEST=Linux desktop

Review URL: http://codereview.appspot.com/4518042

13 years agoUpdate name
Julien Humbert [Thu, 7 Apr 2011 22:45:46 +0000 (00:45 +0200)]
Update name

13 years agoAdded British English translation.
Espreon [Sat, 30 Apr 2011 05:20:06 +0000 (01:20 -0400)]
Added British English translation.

13 years agoFix make dpkg errors, and add gtk3 support for debian
Peng Huang [Tue, 3 May 2011 13:55:39 +0000 (09:55 -0400)]
Fix make dpkg errors, and add gtk3 support for debian

BUG=None
TEST=Linux desktop

Review URL: http://codereview.appspot.com/4436076

13 years agoFix the zombie process of ibus-gconf when ibus-daemon restarts.
Takao Fujiwara [Wed, 27 Apr 2011 11:48:50 +0000 (07:48 -0400)]
Fix the zombie process of ibus-gconf when ibus-daemon restarts.

- Fix the typo in bus_dbus_impl_destroy() (dbusimpl.c)
- Modify bus_server_run() and _ibus_exit() (ibusimpl.c, server.c)
  bus_ibus_impl_destroy() needs to be called so that waitpid()
  prevents processes from becoming zombie.
- Change the declaration of bus_server_quit(). (server.h)

BUG=redhat#697471
TEST=Linux desktop

Review URL: http://codereview.appspot.com/4440059
Patch from Takao Fujiwara <takao.fujiwara1@gmail.com>.

13 years agoFix SEGV in im-ibus.so on Chromium OS
Yusuke Sato [Fri, 22 Apr 2011 11:17:14 +0000 (20:17 +0900)]
Fix SEGV in im-ibus.so on Chromium OS

Review URL: http://codereview.appspot.com/4440060

13 years agoAdd org.freedesktop.IBus.InputContext.ProcessHandWritingEvent and CancelHandWriting...
Yusuke Sato [Fri, 22 Apr 2011 11:07:43 +0000 (20:07 +0900)]
Add org.freedesktop.IBus.InputContext.ProcessHandWritingEvent and CancelHandWriting to support a handwriting engine.

Review URL: http://codereview.appspot.com/4433059