summaryrefslogtreecommitdiff
path: root/client
AgeCommit message (Collapse)AuthorFilesLines
2013-11-05Wayland: Fix Small typoEduardo Lima (Etrunko)1-2/+2
BUG=http://code.google.com/p/ibus/issues/detail?id=1671 TEST=client/wayland/ibus-wayland Review URL: https://codereview.appspot.com/18780044 Patch from Eduardo Lima (Etrunko) <eduardo.lima@intel.com>.
2013-09-20Fix no output when ibus-daemon is running on another display.fujiwarat1-1/+7
Using ssh -X or another display, the hostname and display numbers can be different between the GTK clients and ibus-daemon. This patch fixes the output: "Events queue growing too big, will start to drop." BUG=RH#1004135 TEST=clients/gtk*/im-ibus.so Review URL: https://codereview.appspot.com/13707046
2013-08-30Call _set_content_type in _create_input_context_done in im-ibus.sofujiwarat1-2/+8
TEST=password dialog in gnome-shell Review URL: https://codereview.appspot.com/13255047
2013-08-14Notify engines of the content-type of input contextDaiki Ueno1-14/+40
Add a new D-Bus method SetContentType to InputContext and Engine, to notify engines of the content-type (primary purpose and hints) of input context. This is useful to implement intelligent features in engines, such as automatic input-mode switch and text prediction. The "purpose" and "hints" arguments are compatible with GtkInputPurpose and GtkInputHints: https://developer.gnome.org/gtk3/unstable/GtkEntry.html#GtkInputPurpose https://developer.gnome.org/gtk3/unstable/GtkEntry.html#GtkInputHints and the API is similar to the content_type event in the Wayland Input Method Framework: http://cgit.freedesktop.org/wayland/weston/tree/protocol/input-method.xml#n202 BUG= Review URL: https://codereview.appspot.com/11422043
2013-08-13wayland: Add wayland clientJan Arne Petersen6-0/+1373
This patch adds a new client which supports the Wayland input method protocol. Note that the support is disabled by default until the input method protocol becomes official in the Wayland upstream. Supply --enable-wayland to configure to try it. Also, you will need to set the executable path of ibus-wayland under the "input-method" section of weston.ini, like this: [input-method] path=.../libexec/ibus-wayland BUG=Issue#1617 Review URL: https://codereview.appspot.com/11320043 Patch from Jan Arne Petersen <jan.petersen@kdab.com>.
2013-08-09Update source files with LGP 2.1 according to COPYING.fujiwarat10-63/+63
BUG=http://code.google.com/p/ibus/issues/detail?id=1424 TEST=rpmlint Review URL: https://codereview.appspot.com/12526043
2013-06-10Suppress warnings with Automake 1.13Daiki Ueno2-2/+2
The make variable INCLUDES is now obsoleted by AM_CPPFLAGS. BUG= R=Shawn.P.Huang@gmail.com Review URL: https://codereview.appspot.com/9915054
2013-05-13Check GtkIMContext:input-purpose to disable IM on lock screenDaiki Ueno1-0/+12
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
2013-03-26Fix build error and warnings in Fedora 18.Peng Huang1-2/+9
BUG=None TEST=Manual Review URL: https://codereview.appspot.com/7531047
2013-01-09client: Queue events while the IBus context isn't readyRui Matos1-87/+133
There are actually 3 patches here. --- client: Queue events while the IBus context isn't ready We may lose events that ought to be processed while the IBus context isn't ready or if the connection to IBus isn't fully established yet. To avoid that, enqueue events to be processed later when the IBus context creation finishes. --- client: Don't cancel an ongoing create input context on another request This would only add more delays. --- client: Cancel any ongoing create input context request on finalize BUG= Review URL: https://codereview.appspot.com/6988047 Patch from Rui Matos <tiagomatos@gmail.com>.
2012-10-05Fix wrong return from key snooper.Peng Huang1-1/+1
BUG=None Review URL: https://codereview.appspot.com/6623048
2012-10-03Fix SIGABRT by finalized IBusIMContext during _request_surrounding_textfujiwarat1-6/+23
BUG=RH#859879 TEST=Manually Review URL: https://codereview.appspot.com/6573051
2012-09-11Use gdk_threads_add_idle_full() in gtkimmodule to avoid race condition in ↵Peng Huang1-4/+4
some multi-threaded apps. BUG=http://code.google.com/p/ibus/issues/detail?id=1505 Review URL: https://codereview.appspot.com/6488104
2012-08-16Do not use deprecated glib function g_atexit().Peng Huang1-1/+1
BUG=http://code.google.com/p/ibus/issues/detail?id=1489 Review URL: https://codereview.appspot.com/6454158
2012-05-08Use ibus_bus_new_async in gtk2 client.Jason Conti1-1/+1
BUG=http://code.google.com/p/ibus/issues/detail?id=1452 TEST=Manually Review URL: https://codereview.appspot.com/6198052 Patch from Jason Conti <jason.conti@gmail.com>.
2012-04-06Fix ibus-x11 SEGV in _process_key_event_done.fujiwarat1-9/+41
IMForwardEvent() calls _Xi18nFindClient() and it could return NULL. Maybe the connect_id would be disconnected during the async process_key_event. This fix checks XIM_DISCONNECT in ims_protocol_handler() to cancel IMForwardEvent() in _process_key_event_done(). BUG=RH#769135 TEST=Linux desktop Review URL: https://codereview.appspot.com/5498090
2012-03-07Remove some unused code.Peng Huang1-64/+0
BUG=None TEST=Make Review URL: https://codereview.appspot.com/5756061
2012-02-21Remove enable status of input context and hotkey logic in ibus-daemonPeng Huang1-81/+27
2012-02-02Fix typoes and remove Encoding from desktop files.Peng Huang1-2/+2
BUG=None TEST=None Review URL: https://codereview.appspot.com/5618046
2012-02-01Minor fixes related to git.mk.Daiki Ueno1-23/+0
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
2011-12-20Fix a SEGV if ibusimcontext->ibuscontext is null.fujiwarat1-0/+1
BUG= TEST=Linux desktop Review URL: http://codereview.appspot.com/5489086
2011-11-30Disable surrounding-text when retrieve-surrounding signal is not handled in GTK.Daiki Ueno1-0/+5
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-21Use ibus_input_context_process_key_event_async in ibus-x11fujiwarat1-19/+94
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-10-28Don't set focus on GTK password entry.Daiki Ueno1-0/+13
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-08-11Support selection text retrival.Seigo Nonaka1-1/+68
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-11Add missing config.h in gdk-private.cPeng Huang1-0/+3
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-06-18Store capabilities when ibuscontext is not ready yet.Kazuhiro Inaba1-6/+6
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-18Simplify surrounding-text initialization.Daiki Ueno1-14/+9
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-17Restore cursor location when a new IBusInputContext is created.Peng Huang1-5/+5
BUG=http://crosbug.com/16500 TEST=Linux desktop Review URL: http://codereview.appspot.com/4635044
2011-06-16Fix some fuction signatures to make ibus g-i firendly.Peng Huang1-5/+10
BUG=None TEST=Test on Linux desktop Review URL: http://codereview.appspot.com/4517146
2011-06-02Fix build warnings with gcc 4.6Peng Huang1-4/+3
BUG=Build warnings with gcc 4.6 TEST=Manually Review URL: http://codereview.appspot.com/4517127
2011-06-01Send the new capabilities to ibus-daemon in ibus_im_context_set_use_preedit.Yusuke Sato1-0/+2
BUG=none TEST=none Review URL: http://codereview.appspot.com/4529103
2011-04-22Fix SEGV in im-ibus.so on Chromium OSYusuke Sato1-3/+2
Review URL: http://codereview.appspot.com/4440060
2011-04-08Fix focus issue when reconnect to ibus-daemonPeng Huang1-1/+1
BUG=none TEST=Linux desktop Review URL: http://codereview.appspot.com/4365049
2011-04-05Support surrounding-text retrieval.Daiki Ueno1-12/+101
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-03-17Do not block UI in IBusIMContext anymore.Peng Huang1-51/+128
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-16Add git.mk from gtk+ project, Use it to update .gitignorePeng Huang5-1/+31
BUG=none TEST=make Review URL: http://codereview.appspot.com/4280050
2011-03-11Fix preedit_string = NULL in ibus-x11 _free_ic()fujiwarat1-0/+1
2011-03-08Remove -Wall warnings.Yusuke Sato1-1/+0
Review URL: http://codereview.appspot.com/4261056
2011-03-07Move gtk_key_snooper_remove from function object_fini to class_fini.Peng Huang1-9/+15
BUG=http://crosbug.com/12803 TEST=Linux desktop Review URL: http://codereview.appspot.com/4267044
2011-03-01Optimize focus_in to avoid call some UI blocking functions.Peng Huang1-27/+40
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-02-28Unify async and sync function names.Peng Huang2-91/+52
BUG=none TEST=Linux desktop Review URL: http://codereview.appspot.com/4246042
2011-02-18Call gtk_key_snooper_remove when GTK IM client is switched.fujiwarat1-0/+6
2011-02-18Destroy IBusInputContext correctly in ibus-x11Peng Huang1-3/+2
BUG=none TEST=Linux desktop Review URL: http://codereview.appspot.com/4178062
2011-02-08Add GTK3 definitions.fujiwarat1-0/+9
2011-02-08Fix typo.fujiwarat1-5/+5
2011-02-03Overwrite Gtk+'s default compose table to fix crosbug.com/11421.Yusuke Sato1-0/+23
BUG=chromium-os:11421 TEST=manually done on Chrome OS. Review URL: http://codereview.appspot.com/3989060
2011-01-27Export async version ibus_input_context_process_key_event.Peng Huang2-49/+135
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-24Set GdkEventKey time for gdk_event_put with IBUS_FORWARD_MASK.fujiwarat1-2/+33
2010-12-15Fix gtk version check for deprecated keysyms.Daiki Ueno1-1/+1
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