Hi,

I have attached the sample program that is mentioned at edjebook.pdf.
Here is what i get:

$ gcc  `pkg-config --cflags --libs ecore-evas evas ecore edje`
example.c -o example
example.c: In function 'main':
example.c:34: warning: passing argument 2 of
'edje_object_size_min_get' from incompatible pointer type
example.c:34: warning: passing argument 3 of
'edje_object_size_min_get' from incompatible pointer type

$ ./example
1
ok
0.000000 0.000000

After that point i just see a tiny elips windows without anything. If
i enlarge it i can see that the title set but i don't see the edj file
view there. What is wrong? I can see the edj file if i open it
edje_viewer.

Thanx



-- 
Oğuz Yarımtepe
www.loopbacking.info
/* gcc  `pkg-config --cflags --libs ecore-evas evas ecore edje`  example.c -o example */
/* A sample EDC can be had here: http://www.cuddletech.com/edje/edc/crossfade.edc */
#include <Ecore_Evas.h>
#include <Ecore.h>
#include <Edje.h>
#include <stdio.h>

int app_signal_exit(void *data, int type, void *event);
        /* GLOBALS */
        Ecore_Evas * ee;
        Evas * evas;
        Evas_Object * edje;
        double edje_w, edje_h;
int main(int argv, char *argc[]){
	
	ecore_init();
        ecore_event_handler_add(ECORE_EVENT_SIGNAL_EXIT, app_signal_exit, 0);
        ecore_evas_init();
	
   ee = ecore_evas_software_x11_new(NULL, 0, 0, 0, 0, 0);
        ecore_evas_title_set(ee, "TITLE");
        ecore_evas_borderless_set(ee, 0);
        ecore_evas_shaped_set(ee, 0);
        ecore_evas_show(ee);
	
   evas = ecore_evas_get(ee);
	
        evas_font_path_append(evas, "/home/oguz/ELK-Tests");
        edje_init();
	
   edje = edje_object_add(evas);
        printf("%d\n",edje_object_file_set(edje, "/home/oguz/ELK-Tests/crossfade.eet", "test"));
        evas_object_move(edje, 0, 0);
        edje_object_size_min_get(edje, &edje_w, &edje_h);
	printf("ok\n");
	printf("%f %f\n", edje_w, edje_h);
        evas_object_resize(edje, edje_w, edje_h);
        evas_object_show(edje);
        ecore_evas_resize(ee, (int)edje_w, (int)edje_h);
        ecore_evas_show(ee);
        ecore_main_loop_begin();
        return 0;
}
int app_signal_exit(void *data, int type, void *event){
        printf("DEBUG: Exit called, shutting down\n");
        ecore_main_loop_quit();
        return 1;
}

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to