Exemplo n.º 1
0
static void
_ecore_imf_context_xim_add(Ecore_IMF_Context *ctx)
{
   Ecore_IMF_Context_Data *imf_context_data = _ecore_imf_xim_context_data_new();
   DBG("ctx=%p, imf_context_data=%p", ctx, imf_context_data);
   EINA_SAFETY_ON_NULL_RETURN(imf_context_data);

   imf_context_data->use_preedit = EINA_TRUE;
   imf_context_data->finalizing = EINA_FALSE;
   imf_context_data->has_focus = EINA_FALSE;
   imf_context_data->in_toplevel = EINA_FALSE;

   ecore_imf_context_data_set(ctx, imf_context_data);
}
Exemplo n.º 2
0
static void
_ecore_imf_context_xim_add(Ecore_IMF_Context *ctx)
{
   EINA_LOG_DBG("in");
#ifdef ENABLE_XIM
   Ecore_IMF_Context_Data *imf_context_data = NULL;

   imf_context_data = imf_context_data_new();
   EINA_SAFETY_ON_NULL_RETURN(imf_context_data);

   imf_context_data->use_preedit = EINA_TRUE;
   imf_context_data->finalizing = EINA_FALSE;
   imf_context_data->has_focus = EINA_FALSE;
   imf_context_data->in_toplevel = EINA_FALSE;

   ecore_imf_context_data_set(ctx, imf_context_data);
#else
   (void)ctx;
#endif
}
Exemplo n.º 3
0
   static Ecore_IMF_Context *imf_module_create (void)
     {
        Ecore_IMF_Context  *ctx = NULL;
        EcoreIMFContextISF *ctxd = NULL;

        ctxd = isf_imf_context_new ();
        if (!ctxd)
          {
             printf ("isf_imf_context_new () failed!!!\n");
             return NULL;
          }

        ctx = ecore_imf_context_new (&isf_imf_class);
        if (!ctx)
          {
             delete ctxd;
             return NULL;
          }

        ecore_imf_context_data_set (ctx, ctxd);

        return ctx;
     }
Exemplo n.º 4
0
static Ecore_IMF_Context *
im_module_create(void)
{
    Ecore_IMF_Context *ctx = NULL;
    IBusIMContext *ctxd = NULL;

    ctxd = ecore_imf_context_ibus_new();
    if (!ctxd)
      {
         return NULL;
      }

    ctx = ecore_imf_context_new(&ibus_imf_class);
    if (!ctx)
      {
         free(ctxd);
         return NULL;
      }

    ecore_imf_context_data_set(ctx, ctxd);

    return ctx;
}