Hello,

  I'm trying do complete the ecore_imf python bindings, but when in
the tests I cannot run anything. It seems that the problem is the
initialization routines.
  Looking at the etk sources I made a simple C program to verify if
the problem occurs only in the python bindings.
  The source code is:
============= test.c ======================
#include <stdio.h>
#include "Ecore.h"
#include "Ecore_Job.h"
#include "Edje.h"
#include "Evas.h"
#include "Ecore_IMF.h"

static Ecore_Idle_Enterer *_etk_main_idle_enterer = NULL;

static int _etk_main_idle_enterer_cb(void *data)
{
    /* copied from etk sources, has any relevance */
//    etk_main_iterate();
    return 1;
}

int main(int argv, char* argc[] ){
    Ecore_IMF_Context * context;
//    etk_init();
    if ( !evas_init() )
            printf("evas_init() failed\n");
    if ( !ecore_init() )
            printf("ecore_init() failed\n");
    if ( !ecore_imf_init() )
            printf("ecore_imf_init() failed\n");
    if ( !ecore_job_init() )
            printf("ecore_job_init() failed\n");
    if ( !edje_init() )
            printf("edje_init() failed\n");
    /* copied from etk sources too... just a long shot */
    _etk_main_idle_enterer =
ecore_idle_enterer_add(_etk_main_idle_enterer_cb, NULL);

    /* creating context for default id */
    context = ecore_imf_context_add( ecore_imf_context_default_id_get() );
    if ( !context )
        printf("no context\n");
    edje_shutdown();
    ecore_job_shutdown();
    ecore_imf_shutdown();
    ecore_shutdown();
    evas_shutdown();
    return 0;
}

============= end test.c ==================

  Running this code in the N800 device gives me:

*** ECORE ERROR: Ecore Magic Check Failed!!!
*** IN FUNCTION: ecore_imf_module_context_create()
  Input handle pointer is NULL!
*** NAUGHTY PROGRAMMER!!!
*** SPANK SPANK SPANK!!!
*** Now go fix your code. Tut tut tut!

no context


  Using etk_init() works fine, but I don't want to use etk.
  This long post is just to ask: what's missing in my initialization sequence?

Thanks,
   Thomas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to