Граф коммитов

221 Коммитов

Автор SHA1 Сообщение Дата
Peng Huang 53d33ec4e6 Remove enable status of input context and hotkey logic in ibus-daemon 2012-02-21 11:49:12 -05:00
Peng Huang 185dd51b59 Fix typoes and remove Encoding from desktop files.
BUG=None
TEST=None

Review URL: https://codereview.appspot.com/5618046
2012-02-02 00:28:42 -05:00
Daiki Ueno 6c777b2d17 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
2012-02-01 10:00:42 +09:00
fujiwarat fd07a5a761 Fix a SEGV if ibusimcontext->ibuscontext is null.
BUG=
TEST=Linux desktop

Review URL: http://codereview.appspot.com/5489086
2011-12-20 13:46:45 +09:00
Daiki Ueno 5d2ac19e15 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
2011-11-30 09:40:15 +09:00
fujiwarat 23abee88ca 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
2011-11-21 11:06:21 +09:00
Daiki Ueno cca4fd8993 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
2011-10-28 15:42:08 +09:00
Seigo Nonaka 2ed0adc7a2 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>.
2011-08-11 20:53:13 -04:00
Peng Huang 6ec33ea8cd 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
2011-08-11 20:23:18 -04:00
Kazuhiro Inaba 508f6a11d3 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>.
2011-06-18 00:10:36 -04:00
Daiki Ueno aec97ac090 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>.
2011-06-18 00:03:07 -04:00
Peng Huang 92b30f0988 Restore cursor location when a new IBusInputContext is created.
BUG=http://crosbug.com/16500
TEST=Linux desktop

Review URL: http://codereview.appspot.com/4635044
2011-06-17 23:46:31 -04:00
Peng Huang 1da68ecf2f Fix some fuction signatures to make ibus g-i firendly.
BUG=None
TEST=Test on Linux desktop

Review URL: http://codereview.appspot.com/4517146
2011-06-16 15:46:46 -04:00
Peng Huang 4d15995dc2 Fix build warnings with gcc 4.6
BUG=Build warnings with gcc 4.6
TEST=Manually

Review URL: http://codereview.appspot.com/4517127
2011-06-02 08:30:34 -04:00
Yusuke Sato d3e750eab6 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
2011-06-01 23:37:14 +09:00
Yusuke Sato 9af7672d3e Fix SEGV in im-ibus.so on Chromium OS
Review URL: http://codereview.appspot.com/4440060
2011-04-22 20:17:14 +09:00
Peng Huang 782566b452 Fix focus issue when reconnect to ibus-daemon
BUG=none
TEST=Linux desktop

Review URL: http://codereview.appspot.com/4365049
2011-04-08 15:16:16 -04:00
Daiki Ueno 06e6abee9f Support surrounding-text retrieval.
Unlike the GtkIMContext API, IBus automatically retrieves
surrounding-text when certain events occurred to the
client ("before filter_keypress", for example).  This makes the
engine API simpler but causes periodical emission of D-Bus
signals for updating surrounding-text information, which is
unwanted for typical engines.

For this reason, the surrounding-text support is currently
disabled by default.  To enable it, pass
--enable-surrounding-text to configure.  Also, even
surrounding-text support is compiled in, IBus does not start
polling until an engine requests surrounding-text using
ibus_engine_get_surrounding_text().  To make the function work
for the first time, clients should retrieve
initial surrounding-text when the engine is enabled (see ibus_im_context_focus_in() and
_ibus_context_enabled_cb() in client/gtk2/ibusimcontext.c).

BUG=Issue#778
TEST=manual

Review URL: http://codereview.appspot.com/4276082
Patch from Daiki Ueno <daiki.ueno@gmail.com>.
2011-04-05 10:11:49 -04:00
Peng Huang 13697b0aec Do not block UI in IBusIMContext anymore.
Replace some block IPC calls with async IPC calls, and then IBusIMContext will
not block UI anymore.

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

Review URL: http://codereview.appspot.com/4287054
2011-03-17 10:49:03 -04:00
Peng Huang 14b7d1a071 Add git.mk from gtk+ project, Use it to update .gitignore
BUG=none
TEST=make

Review URL: http://codereview.appspot.com/4280050
2011-03-16 10:01:18 -04:00
fujiwarat 26084822d7 Fix preedit_string = NULL in ibus-x11 _free_ic() 2011-03-11 10:44:04 -05:00
Yusuke Sato f4eae684f5 Remove -Wall warnings.
Review URL: http://codereview.appspot.com/4261056
2011-03-08 21:57:10 +09:00
Peng Huang fbdd157b2a Move gtk_key_snooper_remove from function object_fini to class_fini.
BUG=http://crosbug.com/12803
TEST=Linux desktop

Review URL: http://codereview.appspot.com/4267044
2011-03-07 10:26:04 -05:00
Peng Huang 279ee5d5b3 Optimize focus_in to avoid call some UI blocking functions.
focus_in calls some X blocking functions. It will block UI. This change delays the X blocking calls to idle callback, to avoid blocking UI.

BUG=http://crbug.com/74237
TEST=Linux desktop

Review URL: http://codereview.appspot.com/4254048
2011-03-01 15:34:37 -05:00
Peng Huang 690be230c1 Unify async and sync function names.
BUG=none
TEST=Linux desktop

Review URL: http://codereview.appspot.com/4246042
2011-02-28 15:57:47 -05:00
fujiwarat 8ebad5f07b Call gtk_key_snooper_remove when GTK IM client is switched. 2011-02-18 15:00:36 -05:00
Peng Huang ff5db2e177 Destroy IBusInputContext correctly in ibus-x11
BUG=none
TEST=Linux desktop

Review URL: http://codereview.appspot.com/4178062
2011-02-18 10:15:26 -05:00
fujiwarat 8199abcde4 Add GTK3 definitions. 2011-02-08 15:12:57 -05:00
fujiwarat 31d1e1c41c Fix typo. 2011-02-08 15:12:52 -05:00
Yusuke Sato 03c9e59143 Overwrite Gtk+'s default compose table to fix crosbug.com/11421.
BUG=chromium-os:11421
TEST=manually done on Chrome OS.

Review URL: http://codereview.appspot.com/3989060
2011-02-03 10:15:24 +09:00
Peng Huang af0c9bcf74 Export async version ibus_input_context_process_key_event.
Some application may want to integrate with ibus directly, and want to
use async mode for processing key events. So I make
ibus_input_context_process_key_event to be an async function,
and also added ibus_input_context_process_key_event_sync.

Fix problem in introspection of Engine.

BUG=none
TEST=Tested in Ubuntu 10.10

Review URL: http://codereview.appspot.com/4032044
2011-01-27 11:18:21 -05:00
fujiwarat f28d3e30cb Set GdkEventKey time for gdk_event_put with IBUS_FORWARD_MASK. 2011-01-24 09:32:21 -05:00
Daiki Ueno c3c20f8e45 Fix gtk version check for deprecated keysyms.
From the git log of gtk3, they started adding _KEY from 2.91.0 not 2.90.0.

BUG=none
TEST=manual

Review URL: http://codereview.appspot.com/3670041
2010-12-15 18:32:17 +09:00
Peng Huang c2c4c6df3c Fix crash in im-ibus.so
BUG=chromium-os:9868
TEST=manual

Review URL: http://codereview.appspot.com/3401041
2010-12-14 10:20:46 +08:00
Peng Huang e0b882f5fb Focus out/in fake input context if the input window changed.
BUG=chromium-os:8855
TEST=manual

Review URL: http://codereview.appspot.com/3199042
2010-12-14 10:20:45 +08:00
Peng Huang 93ceb44131 Focus out the fake context in im-ibus.so, when a real context gets the focus.
BUG=none
TEST=manual

Review URL: http://codereview.appspot.com/3561042
2010-12-14 10:16:32 +08:00
Peng Huang 856bd2ea70 Add fake context back in IBusIMContext.
The fake context is removed by mistake in ibus-1.4. It is necessary for Chrome OS.

BUG=none
TEST=manual

Review URL: http://codereview.appspot.com/3574042
2010-12-14 10:14:45 +08:00
Peng Huang b483041c3b Fix some crashs when engine processes are killed.
BUG=none
TEST=manual

Review URL: http://codereview.appspot.com/3152042
2010-11-24 11:29:19 +09:00
Peng Huang ee09d6331a Use g_object_add_weak_pointer to make code simpler.
BUG=none
TEST=none

Review URL: http://codereview.appspot.com/3252041
2010-11-24 10:29:26 +09:00
Peng Huang be50bec410 Remove some unused header files.
BUG=none
TEST=manual

Review URL: http://codereview.appspot.com/3218041
2010-11-21 19:13:34 +09:00
fujiwarat 6e848591c1 Always read Window as 32 bits integer to fix problem in ppc64. 2010-11-16 13:32:54 +09:00
Peng Huang 5e823fcbff Remove block call in ibus-daemon, and use async call instead and clean up code.
1. Do not use poll factory of a component. Sometime, it will cause a dead lock of ibus: ibus-daemon are waiting reply from engine, and engine are also waiting for reply from ibus-daemon.
2. Move some API from IBusComponent to BusComponent, Because of those API is for internal using only
3. Add a fake input context in server side to support switching input method when no context has focus.
4. Remove fake input context in imcontext, because we added the server side fake context

BUG=none
TEST=manual

Review URL: http://codereview.appspot.com/3077042
2010-11-16 10:24:03 +09:00
Peng Huang 26f62c002f Remove a debug output 2010-11-04 12:58:13 +09:00
fujiwarat 420b7b4a80 Remove GDK_DISPLAY, this macro has been removed in gtk3
http://live.gnome.org/GnomeGoals/RemoveDeprecatedSymbols/GTK%2B
2010-11-04 12:34:50 +09:00
Peng Huang c464170208 Fix some issues within codereview. 2010-11-03 13:37:57 +09:00
Peng Huang 8d8ea067c7 Fix a typo in client/gtk3/Makefile.am 2010-11-03 10:54:58 +09:00
Peng Huang 3b3f56d024 Change version to 1.3.99 2010-11-03 10:54:58 +09:00
Peng Huang 164fc1f124 Use gdbus in glib, and get rid of libdbus 2010-11-03 10:54:57 +09:00
fujiwarat 0f6fd61b6e Replace s/gdk_drawable_get_size/gdk_window_get_height/ for GTK3. 2010-11-02 13:23:59 +09:00
fujiwarat acf2a46cdc Fix CPU 100% usage with signal.SIGCHLD 2010-10-21 20:15:27 +09:00