Evas font-engine: add a function to just ref text props.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:43:34 +0000 (10:43 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:43:34 +0000 (10:43 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@56521 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_text_utils.c
src/lib/engines/common/evas_text_utils.h

index abb3d10..026796e 100644 (file)
@@ -31,10 +31,16 @@ evas_common_text_props_content_copy_and_ref(Evas_Text_Props *dst,
       const Evas_Text_Props *src)
 {
    memcpy(dst, src, sizeof(Evas_Text_Props));
+   evas_common_text_props_content_ref(dst);
+}
+
+void
+evas_common_text_props_content_ref(Evas_Text_Props *props)
+{
 #ifdef OT_SUPPORT
-   if (dst->ot_data)
+   if (props->ot_data)
      {
-        evas_common_font_ot_props_ref(dst->ot_data);
+        evas_common_font_ot_props_ref(props->ot_data);
      }
 #endif
 }
index 560518e..ff18a4b 100644 (file)
@@ -27,6 +27,9 @@ evas_common_text_props_content_copy_and_ref(Evas_Text_Props *dst,
       const Evas_Text_Props *src);
 
 void
+evas_common_text_props_content_ref(Evas_Text_Props *props);
+
+void
 evas_common_text_props_content_unref(Evas_Text_Props *props);
 
 EAPI void