ibus-immodule: remove trailing whitespaces and fix indentation

SVN revision: 73319
This commit is contained in:
Jihoon Kim 2012-07-05 01:03:15 +00:00
parent 04ce52bd10
commit 60ded53507
1 changed files with 14 additions and 16 deletions

View File

@ -17,7 +17,7 @@
#include <ibus.h> #include <ibus.h>
#include "ibus_imcontext.h" #include "ibus_imcontext.h"
struct _IBusIMContext struct _IBusIMContext
{ {
/* instance members */ /* instance members */
Ecore_IMF_Context *ctx; Ecore_IMF_Context *ctx;
@ -163,10 +163,10 @@ ibus_im_context_new(void)
{ {
char *display_name = NULL; char *display_name = NULL;
if ((display_name = getenv ("DISPLAY"))) if ((display_name = getenv("DISPLAY")))
ibus_set_display (display_name); ibus_set_display(display_name);
else else
ibus_set_display (":0.0"); ibus_set_display(":0.0");
_bus = ibus_bus_new(); _bus = ibus_bus_new();
} }
@ -183,20 +183,19 @@ _process_key_event_done (GObject *object,
KeyEvent *event = (KeyEvent *)user_data; KeyEvent *event = (KeyEvent *)user_data;
GError *error = NULL; GError *error = NULL;
Eina_Bool retval = ibus_input_context_process_key_event_async_finish ( Eina_Bool retval = ibus_input_context_process_key_event_async_finish(context,
context, res,
res, &error);
&error);
if (error != NULL) if (error != NULL)
{ {
g_warning ("Process Key Event failed: %s.", error->message); g_warning("Process Key Event failed: %s.", error->message);
g_error_free (error); g_error_free(error);
} }
if (retval == EINA_FALSE) if (retval == EINA_FALSE)
{ {
key_event_put (event->keysym, event->state); key_event_put(event->keysym, event->state);
} }
free(event); free(event);
} }
@ -291,7 +290,7 @@ ibus_im_context_filter_event(Ecore_IMF_Context *ctx, Ecore_IMF_Event_Type type,
keysym = XStringToKeysym(ev->key); keysym = XStringToKeysym(ev->key);
state = _ecore_imf_modifier_to_ibus_modifier(ev->modifiers) | IBUS_RELEASE_MASK; state = _ecore_imf_modifier_to_ibus_modifier(ev->modifiers) | IBUS_RELEASE_MASK;
if (_use_sync_mode) if (_use_sync_mode)
{ {
retval = ibus_input_context_process_key_event(ibusimcontext->ibuscontext, retval = ibus_input_context_process_key_event(ibusimcontext->ibuscontext,
keysym, keysym,
@ -320,7 +319,7 @@ ibus_im_context_filter_event(Ecore_IMF_Context *ctx, Ecore_IMF_Event_Type type,
keycode = ecore_x_keysym_keycode_get(ev->key); keycode = ecore_x_keysym_keycode_get(ev->key);
keysym = XStringToKeysym(ev->key); keysym = XStringToKeysym(ev->key);
state = _ecore_imf_modifier_to_ibus_modifier(ev->modifiers); state = _ecore_imf_modifier_to_ibus_modifier(ev->modifiers);
if (_use_sync_mode) if (_use_sync_mode)
{ {
retval = ibus_input_context_process_key_event(ibusimcontext->ibuscontext, retval = ibus_input_context_process_key_event(ibusimcontext->ibuscontext,
keysym, keysym,
@ -329,7 +328,6 @@ ibus_im_context_filter_event(Ecore_IMF_Context *ctx, Ecore_IMF_Event_Type type,
} }
else else
{ {
ibus_input_context_process_key_event_async(ibusimcontext->ibuscontext, ibus_input_context_process_key_event_async(ibusimcontext->ibuscontext,
keysym, keysym,
keycode - 8, keycode - 8,