On Fri, 18 Apr 2014 04:58:33 +0200 Olivier Nougarede <[email protected]>
said:
> In an edc file, i have the following:
>
> group { name: "ok_img";
> min: 20 20;
> parts {
> part { name: "okimg";
> type: IMAGE;
> mouse_events: 1;
> description { state: "default" 0.0;
> image.normal: "ic_ok.png";
> }
> }
> }
> programs {
> program {
> name:"ok_img_clicked";
> signal: "mouse,clicked,1";
> source:"okimg";
> action: SIGNAL_EMIT "mclick" "okimg";
> }
> }
> }
>
> in a source file:
> o, hbox are * Evas_Object,
>
> o = elm_image_add(hbox);
> elm_image_file_set(o, APP_THEME,"ok_img");
> elm_image_no_scale_set(o, EINA_TRUE);
> elm_image_resizable_set(o, EINA_TRUE, EINA_TRUE);
> elm_box_pack_end(hbox, o);
> evas_object_show(o);
> edje_object_signal_callback_add(o, "mclick","okimg", cb, target);
>
> In main.c
> elm_theme_overlay_add(NULL, APP_THEME);
>
> The image is displayed on my widget, but clicking it does not trigger the
> callback! I must be missing something important... but what???
elm images are images. images are not interactive elements. they display
images. if you want it to be interactive use elm layout.
--
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler) [email protected]
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users