Evas textblock: Adjusted textblock_item_text struct fields.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 17 Jul 2011 13:42:55 +0000 (13:42 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 17 Jul 2011 13:42:55 +0000 (13:42 +0000)
Removed the unused per-item baseline and changed inset to Evas_Coord.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@61443 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index 0002958..a3bf494 100644 (file)
@@ -315,7 +315,7 @@ struct _Evas_Object_Textblock_Text_Item
 {
    Evas_Object_Textblock_Item       parent;
    Evas_Text_Props                  text_props;
-   int                              inset, baseline;
+   Evas_Coord                       inset;
    Evas_Coord                       x_adjustment; /* Used to indicate by how
                                                      much we adjusted sizes */
 };
@@ -2410,8 +2410,6 @@ _layout_line_finalize(Ctxt *c, Evas_Object_Textblock_Format *fmt)
         if (it->type == EVAS_TEXTBLOCK_ITEM_TEXT)
           {
              Evas_Object_Textblock_Text_Item *ti = _ITEM_TEXT(it);
-             if (ti->parent.format->font.font)
-               ti->baseline = c->ENFN->font_max_ascent_get(c->ENDT, ti->parent.format->font.font);
              _layout_format_ascent_descent_adjust(c->obj, &c->maxascent,
                    &c->maxdescent, ti->parent.format);
           }