On Sat, 23 Jul 2005 22:26:40 -0500 (CDT) "Edward Presutti"
<[EMAIL PROTECTED]> babbled:

> I'm trying to use and evas textblock inside of the e_table provided with
> enlightenment 0.17. (E17 and all of EFL built from CVS as of this
> afternoon)
> 
> I'm succesfully using this with all of my other widgets, a label, 2
> buttons, etc. It's the same technique used in the monitor module.
> 
> Here's the offending code. (A backtrace is attached as well)
> 
> The code that crashed is the last e_table_pack at the bottom of this
> snippet. Everything is working and if I remove the evas textblock code,
> everything operates normally.

weird. ok... i'll look into this i hope when i get some time. i'll keep this
marked in my inbox for looking into.

> ------------------------------------------------------------
>    /* Background */
>    o = edje_object_add(reader_dialog->evas);
>    reader_dialog->dialog_object = o;
>    evas_object_move(o, pos_x, pos_y);
>    evas_object_resize(o, width, height);
>    evas_object_layer_set(o, -100);
>    edje_object_file_set(o, PACKAGE_LIB_DIR
>                         "/e_modules/reader/reader.edj",
>                         "reader/main");
>    evas_object_show(o);
> 
>    /* Table */
>    o = e_table_add(reader_dialog->evas);
>    reader_dialog->table_object = o;
>    e_table_homogenous_set(o, 1);
>    edje_object_part_swallow(reader_dialog->dialog_object, "items",
>                             reader_dialog->table_object);
>    evas_object_show(o);
> 
>    /* Setup Label */
>    o = edje_object_add(reader_dialog->evas);
>    reader_dialog->label_object = o;
>    edje_object_file_set(o, PACKAGE_LIB_DIR
>                         "/e_modules/reader/reader.edj",
>                         "reader/dialog/label");
>    e_table_pack(reader_dialog->table_object, o, 0, 0, 1, 1);
>    e_table_pack_options_set(o, 1, 1, 1, 1, 0.5, 0.5, 0, 0, -1, -1);
>    evas_object_show(o);
> 
>    /* Setup Text Block */
>    o = evas_object_textblock_add(reader_dialog->evas);
>    reader_dialog->textblock_object = o;
>    evas_object_textblock_format_insert(o, "font=Vera ");
>    evas_object_textblock_format_insert(o, "size=12 ");
>    evas_object_textblock_format_insert(o, "style=soft_shadow ");
>    evas_object_textblock_format_insert(o, "color=#00000000 ");
>    evas_object_textblock_format_insert(o, "shadow_color=#cccccc00 ");
>    evas_object_textblock_text_insert(o, input_string);
>    e_table_pack(reader_dialog->textblock_object, o, 0, 1, 1, 1);
>    e_table_pack_options_set(o, 1, 1, 1, 1, 0.5, 0.5, 0, 0, -1, -1);
>    evas_object_show(o);
> ------------------------------------------------------------
> 
> Thanks,
> 
> -- 
> Ed Presutti (ekrunch on freenode)
> 
> --
> understand, v.:
>       To reach a point, in your investigation of some subject, at which
>       you cease to examine what is really present, and operate on the
>       basis of your own internal model instead.


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
裸好多                              [EMAIL PROTECTED]
Tokyo, Japan (東京 日本)


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to