summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2014-08-18 08:28:46 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2014-09-17 15:08:42 +0300
commit70f1b24a76b3982dce970d05e7810dba81a6e3e9 (patch)
tree7d0530d6b100c7d895c10e9153153703fadb947e
parent9a6af0e31465f8ef2e76b07789db59ba721e36b4 (diff)
Porting to Eo - Clean: removing legacy inheritance.
-rw-r--r--src/lib/elm_main.c149
-rw-r--r--src/lib/elm_widget.c645
-rw-r--r--src/lib/elm_widget.h149
3 files changed, 67 insertions, 876 deletions
diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c
index b5aa66e97..d0f1fbddf 100644
--- a/src/lib/elm_main.c
+++ b/src/lib/elm_main.c
@@ -1658,8 +1658,7 @@ elm_coords_finger_size_adjust(int times_w,
1658EAPI Evas_Object * 1658EAPI Evas_Object *
1659elm_object_item_widget_get(const Elm_Object_Item *it) 1659elm_object_item_widget_get(const Elm_Object_Item *it)
1660{ 1660{
1661 IF_EO_RETURN(it, Evas_Object *, elm_wdg_item_widget_get()); 1661 return eo_do((Eo *)it, elm_wdg_item_widget_get());
1662 return elm_widget_item_widget_get(it);
1663} 1662}
1664 1663
1665EAPI void 1664EAPI void
@@ -1667,23 +1666,20 @@ elm_object_item_part_content_set(Elm_Object_Item *it,
1667 const char *part, 1666 const char *part,
1668 Evas_Object *content) 1667 Evas_Object *content)
1669{ 1668{
1670 IF_EO_DO(it, elm_wdg_item_part_content_set(part, content)); 1669 eo_do((Eo *)it, elm_wdg_item_part_content_set(part, content));
1671 elm_widget_item_internal_part_content_set((Elm_Widget_Item_Data *)it, part, content);
1672} 1670}
1673 1671
1674EAPI Evas_Object * 1672EAPI Evas_Object *
1675elm_object_item_part_content_get(const Elm_Object_Item *it, 1673elm_object_item_part_content_get(const Elm_Object_Item *it,
1676 const char *part) 1674 const char *part)
1677{ 1675{
1678 IF_EO_RETURN(it, Evas_Object *, elm_wdg_item_part_content_get(part)); 1676 return eo_do((Eo *)it, elm_wdg_item_part_content_get(part));
1679 return elm_widget_item_internal_part_content_get((Elm_Widget_Item_Data *)it, part);
1680} 1677}
1681 1678
1682EAPI Evas_Object * 1679EAPI Evas_Object *
1683elm_object_item_part_content_unset(Elm_Object_Item *it, const char *part) 1680elm_object_item_part_content_unset(Elm_Object_Item *it, const char *part)
1684{ 1681{
1685 IF_EO_RETURN(it, Evas_Object *, elm_wdg_item_part_content_unset(part)); 1682 return eo_do((Eo *)it, elm_wdg_item_part_content_unset(part));
1686 return elm_widget_item_internal_part_content_unset((Elm_Widget_Item_Data *)it, part);
1687} 1683}
1688 1684
1689EAPI void 1685EAPI void
@@ -1691,36 +1687,31 @@ elm_object_item_part_text_set(Elm_Object_Item *it,
1691 const char *part, 1687 const char *part,
1692 const char *label) 1688 const char *label)
1693{ 1689{
1694 IF_EO_DO(it, elm_wdg_item_part_text_set(part, label)); 1690 eo_do((Eo *)it, elm_wdg_item_part_text_set(part, label));
1695 elm_widget_item_internal_part_text_set((Elm_Widget_Item_Data *)it, part, label);
1696} 1691}
1697 1692
1698EAPI const char * 1693EAPI const char *
1699elm_object_item_part_text_get(const Elm_Object_Item *it, const char *part) 1694elm_object_item_part_text_get(const Elm_Object_Item *it, const char *part)
1700{ 1695{
1701 IF_EO_RETURN(it, const char *, elm_wdg_item_part_text_get(part)); 1696 return eo_do((Eo *)it, elm_wdg_item_part_text_get(part));
1702 return elm_widget_item_internal_part_text_get((Elm_Widget_Item_Data *)it, part);
1703} 1697}
1704 1698
1705EAPI void 1699EAPI void
1706elm_object_item_domain_translatable_part_text_set(Elm_Object_Item *it, const char *part, const char *domain, const char *text) 1700elm_object_item_domain_translatable_part_text_set(Elm_Object_Item *it, const char *part, const char *domain, const char *text)
1707{ 1701{
1708 IF_EO_DO(it, elm_wdg_item_domain_translatable_part_text_set(part, domain, text)); 1702 eo_do((Eo *)it, elm_wdg_item_domain_translatable_part_text_set(part, domain, text));
1709 elm_widget_item_internal_domain_translatable_part_text_set((Elm_Widget_Item_Data *)it, part, domain, text);
1710} 1703}
1711 1704
1712EAPI const char * 1705EAPI const char *
1713elm_object_item_translatable_part_text_get(const Elm_Object_Item *it, const char *part) 1706elm_object_item_translatable_part_text_get(const Elm_Object_Item *it, const char *part)
1714{ 1707{
1715 IF_EO_RETURN(it, const char *, elm_wdg_item_translatable_part_text_get(part)); 1708 return eo_do((Eo *)it, elm_wdg_item_translatable_part_text_get(part));
1716 return elm_widget_item_internal_translatable_part_text_get((Elm_Widget_Item_Data *)it, part);
1717} 1709}
1718 1710
1719EAPI void 1711EAPI void
1720elm_object_item_domain_part_text_translatable_set(Elm_Object_Item *it, const char *part, const char *domain, Eina_Bool translatable) 1712elm_object_item_domain_part_text_translatable_set(Elm_Object_Item *it, const char *part, const char *domain, Eina_Bool translatable)
1721{ 1713{
1722 IF_EO_DO(it, elm_wdg_item_domain_part_text_translatable_set(part, domain, translatable)); 1714 eo_do((Eo *)it, elm_wdg_item_domain_part_text_translatable_set(part, domain, translatable));
1723 elm_widget_item_internal_domain_part_text_translatable_set((Elm_Widget_Item_Data *)it, part, domain, translatable);
1724} 1715}
1725 1716
1726EAPI void 1717EAPI void
@@ -1757,265 +1748,217 @@ elm_object_focused_item_get(const Evas_Object *obj)
1757EAPI void 1748EAPI void
1758elm_object_item_access_info_set(Elm_Object_Item *it, const char *txt) 1749elm_object_item_access_info_set(Elm_Object_Item *it, const char *txt)
1759{ 1750{
1760 IF_EO_DO(it, elm_wdg_item_access_info_set(txt)); 1751 eo_do((Eo *)it, elm_wdg_item_access_info_set(txt));
1761 _elm_widget_item_internal_access_info_set((Elm_Widget_Item_Data *)it, txt);
1762} 1752}
1763 1753
1764EAPI Evas_Object * 1754EAPI Evas_Object *
1765elm_object_item_access_register(Elm_Object_Item *item) 1755elm_object_item_access_register(Elm_Object_Item *item)
1766{ 1756{
1767 IF_EO_RETURN(item, Evas_Object *, elm_wdg_item_access_register()); 1757 return eo_do((Eo *)item, elm_wdg_item_access_register());
1768
1769 Elm_Widget_Item_Data *it;
1770
1771 it = (Elm_Widget_Item_Data *)item;
1772
1773 _elm_access_widget_item_register(it);
1774
1775 if (it) return it->access_obj;
1776 return NULL;
1777} 1758}
1778 1759
1779EAPI void 1760EAPI void
1780elm_object_item_access_unregister(Elm_Object_Item *item) 1761elm_object_item_access_unregister(Elm_Object_Item *item)
1781{ 1762{
1782 IF_EO_DO(item, elm_wdg_item_access_unregister()); 1763 eo_do((Eo *)item, elm_wdg_item_access_unregister());
1783 _elm_access_widget_item_unregister((Elm_Widget_Item_Data *)item);
1784} 1764}
1785 1765
1786EAPI Evas_Object * 1766EAPI Evas_Object *
1787elm_object_item_access_object_get(const Elm_Object_Item *item) 1767elm_object_item_access_object_get(const Elm_Object_Item *item)
1788{ 1768{
1789 IF_EO_RETURN(item, Evas_Object *, elm_wdg_item_access_object_get()); 1769 return eo_do((Eo *)item, elm_wdg_item_access_object_get());
1790 if (!item) return NULL;
1791
1792 return ((Elm_Widget_Item_Data *)item)->access_obj;
1793} 1770}
1794 1771
1795EAPI void 1772EAPI void
1796elm_object_item_access_order_set(Elm_Object_Item *item, Eina_List *objs) 1773elm_object_item_access_order_set(Elm_Object_Item *item, Eina_List *objs)
1797{ 1774{
1798 IF_EO_DO(item, elm_wdg_item_access_order_set(objs)); 1775 eo_do((Eo *)item, elm_wdg_item_access_order_set(objs));
1799 _elm_access_widget_item_access_order_set((Elm_Widget_Item_Data *)item, objs);
1800} 1776}
1801 1777
1802EAPI const Eina_List * 1778EAPI const Eina_List *
1803elm_object_item_access_order_get(const Elm_Object_Item *item) 1779elm_object_item_access_order_get(const Elm_Object_Item *item)
1804{ 1780{
1805 IF_EO_RETURN(item, const Eina_List *, elm_wdg_item_access_order_get()); 1781 return eo_do((Eo *)item, elm_wdg_item_access_order_get());
1806 return _elm_access_widget_item_access_order_get((Elm_Widget_Item_Data *)item);
1807} 1782}
1808 1783
1809EAPI void 1784EAPI void
1810elm_object_item_access_order_unset(Elm_Object_Item *item) 1785elm_object_item_access_order_unset(Elm_Object_Item *item)
1811{ 1786{
1812 IF_EO_DO(item, elm_wdg_item_access_order_unset()); 1787 eo_do((Eo *)item, elm_wdg_item_access_order_unset());
1813 _elm_access_widget_item_access_order_unset((Elm_Widget_Item_Data *)item);
1814} 1788}
1815 1789
1816EAPI void * 1790EAPI void *
1817elm_object_item_data_get(const Elm_Object_Item *it) 1791elm_object_item_data_get(const Elm_Object_Item *it)
1818{ 1792{
1819 IF_EO_RETURN(it, Evas_Object *, elm_wdg_item_data_get()); 1793 return eo_do((Eo *)it, elm_wdg_item_data_get());
1820 return elm_widget_item_data_get(it);
1821} 1794}
1822 1795
1823EAPI void 1796EAPI void
1824elm_object_item_data_set(Elm_Object_Item *it, void *data) 1797elm_object_item_data_set(Elm_Object_Item *it, void *data)
1825{ 1798{
1826 IF_EO_DO(it, elm_wdg_item_data_set(data)); 1799 eo_do((Eo *)it, elm_wdg_item_data_set(data));
1827 elm_widget_item_data_set(it, data);
1828} 1800}
1829 1801
1830EAPI void 1802EAPI void
1831elm_object_item_signal_emit(Elm_Object_Item *it, const char *emission, const char *source) 1803elm_object_item_signal_emit(Elm_Object_Item *it, const char *emission, const char *source)
1832{ 1804{
1833 IF_EO_DO(it, elm_wdg_item_signal_emit(emission, source)); 1805 eo_do((Eo *)it, elm_wdg_item_signal_emit(emission, source));
1834 elm_widget_item_internal_signal_emit((Elm_Widget_Item_Data *)it, emission, source);
1835} 1806}
1836 1807
1837EAPI void 1808EAPI void
1838elm_object_item_signal_callback_add(Elm_Object_Item *it, const char *emission, const char *source, Elm_Object_Item_Signal_Cb func, void *data) 1809elm_object_item_signal_callback_add(Elm_Object_Item *it, const char *emission, const char *source, Elm_Object_Item_Signal_Cb func, void *data)
1839{ 1810{
1840 IF_EO_DO(it, elm_wdg_item_signal_callback_add(emission, source, func, data)); 1811 eo_do((Eo *)it, elm_wdg_item_signal_callback_add(emission, source, func, data));
1841 elm_widget_item_internal_signal_callback_add((Elm_Widget_Item_Data *)it, emission, source, (Elm_Widget_Item_Signal_Cb) func, data);
1842} 1812}
1843 1813
1844EAPI void * 1814EAPI void *
1845elm_object_item_signal_callback_del(Elm_Object_Item *it, const char *emission, const char *source, Elm_Object_Item_Signal_Cb func) 1815elm_object_item_signal_callback_del(Elm_Object_Item *it, const char *emission, const char *source, Elm_Object_Item_Signal_Cb func)
1846{ 1816{
1847 IF_EO_RETURN(it, void *, elm_wdg_item_signal_callback_del(emission, source, func)); 1817 return eo_do((Eo *)it, elm_wdg_item_signal_callback_del(emission, source, func));
1848 return elm_widget_item_internal_signal_callback_del((Elm_Widget_Item_Data *)it, emission, source, (Elm_Widget_Item_Signal_Cb) func);
1849} 1818}
1850 1819
1851EAPI void 1820EAPI void
1852elm_object_item_style_set(Elm_Object_Item *it, const char *style) 1821elm_object_item_style_set(Elm_Object_Item *it, const char *style)
1853{ 1822{
1854 IF_EO_DO(it, elm_wdg_item_style_set(style)); 1823 eo_do((Eo *)it, elm_wdg_item_style_set(style));
1855 elm_widget_item_style_set(it, style);
1856} 1824}
1857 1825
1858EAPI const char * 1826EAPI const char *
1859elm_object_item_style_get(Elm_Object_Item *it) 1827elm_object_item_style_get(Elm_Object_Item *it)
1860{ 1828{
1861 IF_EO_RETURN(it, const char *, elm_wdg_item_style_get()); 1829 return eo_do((Eo *)it, elm_wdg_item_style_get());
1862 return elm_widget_item_style_get(it);
1863} 1830}
1864 1831
1865EAPI void elm_object_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) 1832EAPI void elm_object_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled)
1866{ 1833{
1867 IF_EO_DO(it, elm_wdg_item_disabled_set(disabled)); 1834 eo_do((Eo *)it, elm_wdg_item_disabled_set(disabled));
1868 elm_widget_item_internal_disabled_set((Elm_Widget_Item_Data *)it, disabled);
1869} 1835}
1870 1836
1871EAPI Eina_Bool elm_object_item_disabled_get(const Elm_Object_Item *it) 1837EAPI Eina_Bool elm_object_item_disabled_get(const Elm_Object_Item *it)
1872{ 1838{
1873 IF_EO_RETURN(it, Eina_Bool, elm_wdg_item_disabled_get()); 1839 return eo_do((Eo *)it, elm_wdg_item_disabled_get());
1874 return elm_widget_item_internal_disabled_get((Elm_Widget_Item_Data *)it);
1875} 1840}
1876 1841
1877EAPI void elm_object_item_del_cb_set(Elm_Object_Item *it, Evas_Smart_Cb del_cb) 1842EAPI void elm_object_item_del_cb_set(Elm_Object_Item *it, Evas_Smart_Cb del_cb)
1878{ 1843{
1879 IF_EO_DO(it, elm_wdg_item_del_cb_set(del_cb)); 1844 eo_do((Eo *)it, elm_wdg_item_del_cb_set(del_cb));
1880 elm_widget_item_internal_del_cb_set((Elm_Widget_Item_Data *)it, del_cb);
1881} 1845}
1882 1846
1883EAPI void elm_object_item_del(Elm_Object_Item *it) 1847EAPI void elm_object_item_del(Elm_Object_Item *it)
1884{ 1848{
1885 if (!it) return; 1849 eo_do((Eo *)it, elm_wdg_item_del());
1886 IF_EO_DO(it, elm_wdg_item_del());
1887 _elm_widget_item_internal_del((Elm_Widget_Item_Data *)it);
1888} 1850}
1889 1851
1890EAPI void 1852EAPI void
1891elm_object_item_tooltip_text_set(Elm_Object_Item *it, const char *text) 1853elm_object_item_tooltip_text_set(Elm_Object_Item *it, const char *text)
1892{ 1854{
1893 IF_EO_DO(it, elm_wdg_item_tooltip_text_set(text)); 1855 eo_do((Eo *)it, elm_wdg_item_tooltip_text_set(text));
1894 elm_widget_item_tooltip_text_set(it, text);
1895} 1856}
1896 1857
1897EAPI void 1858EAPI void
1898elm_object_item_tooltip_content_cb_set(Elm_Object_Item *it, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) 1859elm_object_item_tooltip_content_cb_set(Elm_Object_Item *it, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb)
1899{ 1860{
1900 IF_EO_DO(it, elm_wdg_item_tooltip_content_cb_set(func, data, del_cb)); 1861 eo_do((Eo *)it, elm_wdg_item_tooltip_content_cb_set(func, data, del_cb));
1901 elm_widget_item_tooltip_content_cb_set(it, func, data, del_cb);
1902} 1862}
1903 1863
1904EAPI void 1864EAPI void
1905elm_object_item_tooltip_unset(Elm_Object_Item *it) 1865elm_object_item_tooltip_unset(Elm_Object_Item *it)
1906{ 1866{
1907 IF_EO_DO(it, elm_wdg_item_tooltip_unset()); 1867 eo_do((Eo *)it, elm_wdg_item_tooltip_unset());
1908 elm_widget_item_tooltip_unset(it);
1909} 1868}
1910 1869
1911EAPI Eina_Bool 1870EAPI Eina_Bool
1912elm_object_item_tooltip_window_mode_set(Elm_Object_Item *it, Eina_Bool disable) 1871elm_object_item_tooltip_window_mode_set(Elm_Object_Item *it, Eina_Bool disable)
1913{ 1872{
1914 IF_EO_RETURN(it, Eina_Bool, elm_wdg_item_tooltip_window_mode_set(disable)); 1873 return eo_do((Eo *)it, elm_wdg_item_tooltip_window_mode_set(disable));
1915 return elm_widget_item_tooltip_window_mode_set(it, disable);
1916} 1874}
1917 1875
1918EAPI Eina_Bool 1876EAPI Eina_Bool
1919elm_object_item_tooltip_window_mode_get(const Elm_Object_Item *it) 1877elm_object_item_tooltip_window_mode_get(const Elm_Object_Item *it)
1920{ 1878{
1921 IF_EO_RETURN(it, Eina_Bool, elm_wdg_item_tooltip_window_mode_get()); 1879 return eo_do((Eo *)it, elm_wdg_item_tooltip_window_mode_get());
1922 return elm_widget_item_tooltip_window_mode_get(it);
1923} 1880}
1924 1881
1925EAPI void 1882EAPI void
1926elm_object_item_tooltip_style_set(Elm_Object_Item *it, const char *style) 1883elm_object_item_tooltip_style_set(Elm_Object_Item *it, const char *style)
1927{ 1884{
1928 IF_EO_DO(it, elm_wdg_item_tooltip_style_set(style)); 1885 eo_do((Eo *)it, elm_wdg_item_tooltip_style_set(style));
1929 elm_widget_item_tooltip_style_set(it, style);
1930} 1886}
1931 1887
1932EAPI const char * 1888EAPI const char *
1933elm_object_item_tooltip_style_get(const Elm_Object_Item *it) 1889elm_object_item_tooltip_style_get(const Elm_Object_Item *it)
1934{ 1890{
1935 IF_EO_RETURN(it, const char *, elm_wdg_item_tooltip_style_get()); 1891 return eo_do((Eo *)it, elm_wdg_item_tooltip_style_get());
1936 return elm_widget_item_tooltip_style_get(it);
1937} 1892}
1938 1893
1939EAPI void 1894EAPI void
1940elm_object_item_cursor_set(Elm_Object_Item *it, const char *cursor) 1895elm_object_item_cursor_set(Elm_Object_Item *it, const char *cursor)
1941{ 1896{
1942 IF_EO_DO(it, elm_wdg_item_cursor_set(cursor)); 1897 eo_do((Eo *)it, elm_wdg_item_cursor_set(cursor));
1943 elm_widget_item_cursor_set(it, cursor);
1944} 1898}
1945 1899
1946EAPI const char * 1900EAPI const char *
1947elm_object_item_cursor_get(const Elm_Object_Item *it) 1901elm_object_item_cursor_get(const Elm_Object_Item *it)
1948{ 1902{
1949 IF_EO_RETURN(it, const char *, elm_wdg_item_cursor_get()); 1903 return eo_do((Eo *)it, elm_wdg_item_cursor_get());
1950 return elm_widget_item_cursor_get(it);
1951} 1904}
1952 1905
1953EAPI void 1906EAPI void
1954elm_object_item_cursor_unset(Elm_Object_Item *it) 1907elm_object_item_cursor_unset(Elm_Object_Item *it)
1955{ 1908{
1956 IF_EO_DO(it, elm_wdg_item_cursor_unset()); 1909 eo_do((Eo *)it, elm_wdg_item_cursor_unset());
1957 elm_widget_item_cursor_unset(it);
1958} 1910}
1959 1911
1960EAPI void 1912EAPI void
1961elm_object_item_cursor_style_set(Elm_Object_Item *it, const char *style) 1913elm_object_item_cursor_style_set(Elm_Object_Item *it, const char *style)
1962{ 1914{
1963 IF_EO_DO(it, elm_wdg_item_cursor_style_set(style)); 1915 eo_do((Eo *)it, elm_wdg_item_cursor_style_set(style));
1964 elm_widget_item_cursor_style_set(it, style);
1965} 1916}
1966 1917
1967EAPI const char * 1918EAPI const char *
1968elm_object_item_cursor_style_get(const Elm_Object_Item *it) 1919elm_object_item_cursor_style_get(const Elm_Object_Item *it)
1969{ 1920{
1970 IF_EO_RETURN(it, const char *, elm_wdg_item_cursor_style_get()); 1921 return eo_do((Eo *)it, elm_wdg_item_cursor_style_get());
1971 return elm_widget_item_cursor_style_get(it);
1972} 1922}
1973 1923
1974EAPI void 1924EAPI void
1975elm_object_item_cursor_engine_only_set(Elm_Object_Item *it, Eina_Bool engine_only) 1925elm_object_item_cursor_engine_only_set(Elm_Object_Item *it, Eina_Bool engine_only)
1976{ 1926{
1977 IF_EO_DO(it, elm_wdg_item_cursor_engine_only_set(engine_only)); 1927 eo_do((Eo *)it, elm_wdg_item_cursor_engine_only_set(engine_only));
1978 elm_widget_item_cursor_engine_only_set(it, engine_only);
1979} 1928}
1980 1929
1981EAPI Eina_Bool 1930EAPI Eina_Bool
1982elm_object_item_cursor_engine_only_get(const Elm_Object_Item *it) 1931elm_object_item_cursor_engine_only_get(const Elm_Object_Item *it)
1983{ 1932{
1984 IF_EO_RETURN(it, Eina_Bool, elm_wdg_item_cursor_engine_only_get()); 1933 return eo_do((Eo *)it, elm_wdg_item_cursor_engine_only_get());
1985 return elm_widget_item_cursor_engine_only_get(it);
1986} 1934}
1987 1935
1988EAPI Evas_Object * 1936EAPI Evas_Object *
1989elm_object_item_track(Elm_Object_Item *it) 1937elm_object_item_track(Elm_Object_Item *it)
1990{ 1938{
1991 IF_EO_RETURN(it, Evas_Object *, elm_wdg_item_track()); 1939 return eo_do((Eo *)it, elm_wdg_item_track());
1992 return elm_widget_item_track((Elm_Widget_Item_Data *)it);
1993} 1940}
1994 1941
1995void 1942void
1996elm_object_item_untrack(Elm_Object_Item *it) 1943elm_object_item_untrack(Elm_Object_Item *it)
1997{ 1944{
1998 IF_EO_DO(it, elm_wdg_item_untrack()); 1945 eo_do((Eo *)it, elm_wdg_item_untrack());
1999 elm_widget_item_untrack((Elm_Widget_Item_Data *)it);
2000} 1946}
2001 1947
2002int 1948int
2003elm_object_item_track_get(const Elm_Object_Item *it) 1949elm_object_item_track_get(const Elm_Object_Item *it)
2004{ 1950{
2005 IF_EO_RETURN(it, int, elm_wdg_item_track_get()); 1951 return eo_do((Eo *)it, elm_wdg_item_track_get());
2006 return elm_widget_item_track_get((Elm_Widget_Item_Data *)it);
2007} 1952}
2008 1953
2009EAPI void 1954EAPI void
2010elm_object_item_focus_set(Elm_Object_Item *item, Eina_Bool focused) 1955elm_object_item_focus_set(Elm_Object_Item *item, Eina_Bool focused)
2011{ 1956{
2012 IF_EO_DO(item, elm_wdg_item_focus_set(focused)); 1957 eo_do((Eo *)item, elm_wdg_item_focus_set(focused));
2013 elm_widget_item_focus_set(item, focused);
2014} 1958}
2015 1959
2016EAPI Eina_Bool 1960EAPI Eina_Bool
2017elm_object_item_focus_get(const Elm_Object_Item *item) 1961elm_object_item_focus_get(const Elm_Object_Item *item)
2018{ 1962{
2019 IF_EO_RETURN(item, Eina_Bool, elm_wdg_item_focus_get()); 1963 return eo_do((Eo *)item, elm_wdg_item_focus_get());
2020 return elm_widget_item_focus_get(item);
2021} 1964}
diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c
index 37053ce6a..82e7e0738 100644
--- a/src/lib/elm_widget.c
+++ b/src/lib/elm_widget.c
@@ -4119,26 +4119,6 @@ _elm_widget_item_signal_callback_list_get(Elm_Widget_Item_Data *item, Eina_List
4119 * @see elm_widget_item_del() to release memory. 4119 * @see elm_widget_item_del() to release memory.
4120 * @ingroup Widget 4120 * @ingroup Widget
4121 */ 4121 */
4122EAPI Elm_Widget_Item_Data *
4123_elm_widget_item_new(Evas_Object *widget,
4124 size_t alloc_size)
4125{
4126 if (!_elm_widget_is(widget))
4127 return NULL;
4128
4129 Elm_Widget_Item_Data *item;
4130
4131 EINA_SAFETY_ON_TRUE_RETURN_VAL(alloc_size < sizeof(Elm_Widget_Item_Data), NULL);
4132 EINA_SAFETY_ON_TRUE_RETURN_VAL(!_elm_widget_is(widget), NULL);
4133
4134 item = calloc(1, alloc_size);
4135 EINA_SAFETY_ON_NULL_RETURN_VAL(item, NULL);
4136
4137 EINA_MAGIC_SET(item, ELM_WIDGET_ITEM_MAGIC);
4138 item->widget = widget;
4139 return item;
4140}
4141
4142EOLIAN static void 4122EOLIAN static void
4143_elm_widget_item_eo_base_constructor(Eo *eo_item, Elm_Widget_Item_Data *item) 4123_elm_widget_item_eo_base_constructor(Eo *eo_item, Elm_Widget_Item_Data *item)
4144{ 4124{
@@ -4156,8 +4136,8 @@ _elm_widget_item_eo_base_constructor(Eo *eo_item, Elm_Widget_Item_Data *item)
4156 item->eo_obj = eo_item; 4136 item->eo_obj = eo_item;
4157} 4137}
4158 4138
4159EAPI void 4139EOLIAN static void
4160_elm_widget_item_free(Elm_Widget_Item_Data *item) 4140_elm_widget_item_eo_base_destructor(Eo *eo_item, Elm_Widget_Item_Data *item)
4161{ 4141{
4162 Elm_Translate_String_Data *ts; 4142 Elm_Translate_String_Data *ts;
4163 4143
@@ -4188,14 +4168,6 @@ _elm_widget_item_free(Elm_Widget_Item_Data *item)
4188 4168
4189 EINA_MAGIC_SET(item, EINA_MAGIC_NONE); 4169 EINA_MAGIC_SET(item, EINA_MAGIC_NONE);
4190 4170
4191 if (!item->eo_obj)
4192 free(item);
4193}
4194
4195EOLIAN static void
4196_elm_widget_item_eo_base_destructor(Eo *eo_item, Elm_Widget_Item_Data *item)
4197{
4198 _elm_widget_item_free(item);
4199 eo_do_super(eo_item, ELM_WIDGET_ITEM_CLASS, eo_destructor()); 4171 eo_do_super(eo_item, ELM_WIDGET_ITEM_CLASS, eo_destructor());
4200} 4172}
4201 4173
@@ -4225,50 +4197,16 @@ _elm_widget_item_eo_base_destructor(Eo *eo_item, Elm_Widget_Item_Data *item)
4225EOLIAN static void 4197EOLIAN static void
4226_elm_widget_item_del(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item) 4198_elm_widget_item_del(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item)
4227{ 4199{
4228 _elm_widget_item_internal_del(item);
4229}
4230
4231EAPI void
4232_elm_widget_item_internal_del(Elm_Widget_Item_Data *item)
4233{
4234 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 4200 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
4235 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 4201 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
4236 item->on_deletion = EINA_TRUE; 4202 item->on_deletion = EINA_TRUE;
4237 4203
4238 //Widget item delete callback 4204 //Widget item delete callback
4239 if (item->eo_obj) 4205 Eina_Bool del_ok;
4240 { 4206 eo_do(item->eo_obj, del_ok = elm_wdg_item_del_pre());
4241 Eina_Bool del_ok; 4207 if (del_ok)
4242 eo_do(item->eo_obj, del_ok = elm_wdg_item_del_pre()); 4208 eo_del(item->eo_obj);
4243 if (del_ok) 4209 return;
4244 eo_del(item->eo_obj);
4245 return;
4246 }
4247 if (item->del_pre_func)
4248 {
4249 if (item->del_pre_func((Elm_Object_Item *)item))
4250 _elm_widget_item_free(item);
4251 }
4252 else
4253 _elm_widget_item_free(item);
4254}
4255
4256/**
4257 * @internal
4258 *
4259 * Set the function to notify to widgets when item is being deleted by user.
4260 *
4261 * @param item a valid #Elm_Widget_Item to be notified
4262 * @see elm_widget_item_del_pre_hook_set() convenience macro.
4263 * @ingroup Widget
4264 */
4265EAPI void
4266_elm_widget_item_del_pre_hook_set(Elm_Widget_Item_Data *item,
4267 Elm_Widget_Del_Pre_Cb func)
4268{
4269 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
4270 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
4271 item->del_pre_func = func;
4272} 4210}
4273 4211
4274EOLIAN static Eina_Bool 4212EOLIAN static Eina_Bool
@@ -4276,76 +4214,6 @@ _elm_widget_item_del_pre(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item EIN
4276{ 4214{
4277 return EINA_TRUE; 4215 return EINA_TRUE;
4278} 4216}
4279/**
4280 * @internal
4281 *
4282 * Set the function to set the style of item
4283 *
4284 * @param item a valid #Elm_Widget_Item to be notified
4285 * @see elm_widget_item_style_set_hook_set() convenience macro.
4286 * @ingroup Widget
4287 */
4288EAPI void
4289_elm_widget_item_style_set_hook_set(Elm_Widget_Item_Data *item,
4290 Elm_Widget_Style_Set_Cb func)
4291{
4292 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
4293 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
4294 item->style_set_func = func;
4295}
4296
4297/**
4298 * @internal
4299 *
4300 * Set the function to get the style of item
4301 *
4302 * @param item a valid #Elm_Widget_Item to be notified
4303 * @see elm_widget_item_style_get_hook_set() convenience macro.
4304 * @ingroup Widget
4305 */
4306EAPI void
4307_elm_widget_item_style_get_hook_set(Elm_Widget_Item_Data *item,
4308 Elm_Widget_Style_Get_Cb func)
4309{
4310 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
4311 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
4312 item->style_get_func = func;
4313}
4314
4315/**
4316 * @internal
4317 *
4318 * Set the function to set the focus on widget item.
4319 *
4320 * @param item a valid #Elm_Widget_Item to be notified
4321 * @see elm_widget_item_focus_set_hook_set() convenience macro.
4322 * @ingroup Widget
4323 */
4324EAPI void
4325_elm_widget_item_focus_set_hook_set(Elm_Widget_Item_Data *item, Elm_Widget_Focus_Set_Cb func)
4326{
4327 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
4328 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
4329 item->focus_set_func = func;
4330}
4331
4332/**
4333 * @internal
4334 *
4335 * Set the function to set the focus on widget item.
4336 *
4337 * @param item a valid #Elm_Widget_Item to be notified
4338 * @see elm_widget_item_focus_get_hook_set() convenience macro.
4339 * @ingroup Widget
4340 */
4341EAPI void
4342_elm_widget_item_focus_get_hook_set(Elm_Widget_Item_Data *item,
4343 Elm_Widget_Focus_Get_Cb func)
4344{
4345 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
4346 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
4347 item->focus_get_func = func;
4348}
4349 4217
4350/** 4218/**
4351 * @internal 4219 * @internal
@@ -4363,12 +4231,6 @@ _elm_widget_item_focus_get_hook_set(Elm_Widget_Item_Data *item,
4363EOLIAN static void 4231EOLIAN static void
4364_elm_widget_item_pre_notify_del(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item) 4232_elm_widget_item_pre_notify_del(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item)
4365{ 4233{
4366 elm_widget_item_internal_pre_notify_del(item);
4367}
4368
4369EAPI void
4370elm_widget_item_internal_pre_notify_del(Elm_Widget_Item_Data *item)
4371{
4372 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 4234 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
4373 if (!item->del_func) return; 4235 if (!item->del_func) return;
4374 item->del_func((void *)item->data, item->widget, item); 4236 item->del_func((void *)item->data, item->widget, item);
@@ -4398,13 +4260,6 @@ _elm_widget_item_del_cb_set(Eo *eo_item EINA_UNUSED,
4398 Elm_Widget_Item_Data *item, 4260 Elm_Widget_Item_Data *item,
4399 Evas_Smart_Cb func) 4261 Evas_Smart_Cb func)
4400{ 4262{
4401 elm_widget_item_internal_del_cb_set(item,func);
4402}
4403
4404EAPI void
4405elm_widget_item_internal_del_cb_set(Elm_Widget_Item_Data *item,
4406 Evas_Smart_Cb func)
4407{
4408 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 4263 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
4409 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 4264 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
4410 4265
@@ -4427,12 +4282,6 @@ elm_widget_item_internal_del_cb_set(Elm_Widget_Item_Data *item,
4427EOLIAN static Evas_Object * 4282EOLIAN static Evas_Object *
4428_elm_widget_item_widget_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item) 4283_elm_widget_item_widget_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item)
4429{ 4284{
4430 return elm_widget_item_internal_widget_get(item);
4431}
4432
4433EAPI Evas_Object *
4434elm_widget_item_internal_widget_get(const Elm_Widget_Item_Data *item)
4435{
4436 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL); 4285 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL);
4437 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item, NULL); 4286 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item, NULL);
4438 4287
@@ -4458,13 +4307,6 @@ _elm_widget_item_data_set(Eo *eo_item EINA_UNUSED,
4458 Elm_Widget_Item_Data *item, 4307 Elm_Widget_Item_Data *item,
4459 const void *data) 4308 const void *data)
4460{ 4309{
4461 elm_widget_item_internal_data_set(item, data);
4462}
4463
4464EAPI void
4465elm_widget_item_internal_data_set(Elm_Widget_Item_Data *item,
4466 const void *data)
4467{
4468 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 4310 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
4469 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 4311 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
4470 4312
@@ -4485,12 +4327,6 @@ elm_widget_item_internal_data_set(Elm_Widget_Item_Data *item,
4485EOLIAN static void * 4327EOLIAN static void *
4486_elm_widget_item_data_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item) 4328_elm_widget_item_data_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item)
4487{ 4329{
4488 return elm_widget_item_internal_data_get(item);
4489}
4490
4491EAPI void *
4492elm_widget_item_internal_data_get(const Elm_Widget_Item_Data *item)
4493{
4494 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL); 4330 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL);
4495 return (void *)item->data; 4331 return (void *)item->data;
4496} 4332}
@@ -4500,33 +4336,17 @@ _elm_widget_item_disabled_set(Eo *eo_item EINA_UNUSED,
4500 Elm_Widget_Item_Data *item, 4336 Elm_Widget_Item_Data *item,
4501 Eina_Bool disabled) 4337 Eina_Bool disabled)
4502{ 4338{
4503 elm_widget_item_internal_disabled_set(item, disabled);
4504}
4505
4506EAPI void
4507elm_widget_item_internal_disabled_set(Elm_Widget_Item_Data *item,
4508 Eina_Bool disabled)
4509{
4510 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 4339 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
4511 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 4340 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
4512 4341
4513 if (item->disabled == disabled) return; 4342 if (item->disabled == disabled) return;
4514 item->disabled = !!disabled; 4343 item->disabled = !!disabled;
4515 if (item->eo_obj) 4344 eo_do(item->eo_obj, elm_wdg_item_disable());
4516 eo_do(item->eo_obj, elm_wdg_item_disable());
4517 else
4518 if (item->disable_func) item->disable_func(item);
4519} 4345}
4520 4346
4521EOLIAN static Eina_Bool 4347EOLIAN static Eina_Bool
4522_elm_widget_item_disabled_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item) 4348_elm_widget_item_disabled_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item)
4523{ 4349{
4524 return elm_widget_item_internal_disabled_get(item);
4525}
4526
4527EAPI Eina_Bool
4528elm_widget_item_internal_disabled_get(const Elm_Widget_Item_Data *item)
4529{
4530 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, EINA_FALSE); 4350 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, EINA_FALSE);
4531 return item->disabled; 4351 return item->disabled;
4532} 4352}
@@ -4537,14 +4357,6 @@ _elm_widget_item_style_set(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item,
4537 ERR_NOT_SUPPORTED(item, "elm_object_style_set()"); 4357 ERR_NOT_SUPPORTED(item, "elm_object_style_set()");
4538} 4358}
4539 4359
4540EAPI void
4541elm_widget_item_internal_style_set(Elm_Widget_Item_Data *item, const char *style)
4542{
4543 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
4544 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
4545 item->style_set_func(item, style);
4546}
4547
4548EOLIAN static const char * 4360EOLIAN static const char *
4549_elm_widget_item_style_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item) 4361_elm_widget_item_style_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item)
4550{ 4362{
@@ -4552,22 +4364,6 @@ _elm_widget_item_style_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item)
4552 return NULL; 4364 return NULL;
4553} 4365}
4554 4366
4555EAPI const char *
4556elm_widget_item_internal_style_get(Elm_Widget_Item_Data *item)
4557{
4558 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL);
4559 return item->style_get_func(item);
4560}
4561
4562EAPI void
4563_elm_widget_item_disable_hook_set(Elm_Widget_Item_Data *item,
4564 Elm_Widget_Disable_Cb func)
4565{
4566 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
4567 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
4568 item->disable_func = func;
4569}
4570
4571EOLIAN static void 4367EOLIAN static void
4572_elm_widget_item_disable(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item EINA_UNUSED) 4368_elm_widget_item_disable(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item EINA_UNUSED)
4573{ 4369{
@@ -4579,13 +4375,6 @@ _elm_widget_item_focus_set(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item,
4579 ERR_NOT_SUPPORTED(item, "elm_object_item_focus_set"); 4375 ERR_NOT_SUPPORTED(item, "elm_object_item_focus_set");
4580} 4376}
4581 4377
4582EAPI void
4583elm_widget_item_internal_focus_set(Elm_Widget_Item_Data *item, Eina_Bool focused)
4584{
4585 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
4586 item->focus_set_func(item, focused);
4587}
4588
4589EOLIAN static Eina_Bool 4378EOLIAN static Eina_Bool
4590_elm_widget_item_focus_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item) 4379_elm_widget_item_focus_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item)
4591{ 4380{
@@ -4593,13 +4382,6 @@ _elm_widget_item_focus_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item)
4593 return EINA_FALSE; 4382 return EINA_FALSE;
4594} 4383}
4595 4384
4596EAPI Eina_Bool
4597elm_widget_item_internal_focus_get(const Elm_Widget_Item_Data *item)
4598{
4599 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, EINA_FALSE);
4600 return item->focus_get_func(item);
4601}
4602
4603EOLIAN static void 4385EOLIAN static void
4604_elm_widget_item_domain_translatable_part_text_set(Eo *eo_item EINA_UNUSED, 4386_elm_widget_item_domain_translatable_part_text_set(Eo *eo_item EINA_UNUSED,
4605 Elm_Widget_Item_Data *item, 4387 Elm_Widget_Item_Data *item,
@@ -4607,15 +4389,6 @@ _elm_widget_item_domain_translatable_part_text_set(Eo *eo_item EINA_UNUSED,
4607 const char *domain, 4389 const char *domain,
4608 const char *label) 4390 const char *label)
4609{ 4391{
4610 elm_widget_item_internal_domain_translatable_part_text_set(item, part, domain, label);
4611}
4612
4613EAPI void
4614elm_widget_item_internal_domain_translatable_part_text_set(Elm_Widget_Item_Data *item,
4615 const char *part,
4616 const char *domain,
4617 const char *label)
4618{
4619 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 4392 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
4620 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 4393 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
4621 Elm_Translate_String_Data *ts; 4394 Elm_Translate_String_Data *ts;
@@ -4639,10 +4412,7 @@ elm_widget_item_internal_domain_translatable_part_text_set(Elm_Widget_Item_Data
4639#endif 4412#endif
4640 } 4413 }
4641 item->on_translate = EINA_TRUE; 4414 item->on_translate = EINA_TRUE;
4642 if (item->eo_obj) 4415 eo_do(item->eo_obj, elm_wdg_item_part_text_set(part, label));
4643 eo_do(item->eo_obj, elm_wdg_item_part_text_set(part, label));
4644 else
4645 elm_widget_item_internal_part_text_set(item, part, label);
4646 item->on_translate = EINA_FALSE; 4416 item->on_translate = EINA_FALSE;
4647} 4417}
4648 4418
@@ -4651,13 +4421,6 @@ _elm_widget_item_translatable_part_text_get(Eo *eo_item EINA_UNUSED,
4651 Elm_Widget_Item_Data *item, 4421 Elm_Widget_Item_Data *item,
4652 const char *part) 4422 const char *part)
4653{ 4423{
4654 return elm_widget_item_internal_translatable_part_text_get(item, part);
4655}
4656
4657EAPI const char *
4658elm_widget_item_internal_translatable_part_text_get(const Elm_Widget_Item_Data *item,
4659 const char *part)
4660{
4661 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL); 4424 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL);
4662 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item, NULL); 4425 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item, NULL);
4663 4426
@@ -4674,15 +4437,6 @@ _elm_widget_item_domain_part_text_translatable_set(Eo *eo_item EINA_UNUSED,
4674 const char *domain, 4437 const char *domain,
4675 Eina_Bool translatable) 4438 Eina_Bool translatable)
4676{ 4439{
4677 elm_widget_item_internal_domain_part_text_translatable_set(item, part, domain, translatable);
4678}
4679
4680EAPI void
4681elm_widget_item_internal_domain_part_text_translatable_set(Elm_Widget_Item_Data *item,
4682 const char *part,
4683 const char *domain,
4684 Eina_Bool translatable)
4685{
4686 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 4440 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
4687 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 4441 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
4688 Elm_Translate_String_Data *ts; 4442 Elm_Translate_String_Data *ts;
@@ -4694,10 +4448,7 @@ elm_widget_item_internal_domain_part_text_translatable_set(Elm_Widget_Item_Data
4694 if (!ts->domain) ts->domain = eina_stringshare_add(domain); 4448 if (!ts->domain) ts->domain = eina_stringshare_add(domain);
4695 else eina_stringshare_replace(&ts->domain, domain); 4449 else eina_stringshare_replace(&ts->domain, domain);
4696 4450
4697 if (item->eo_obj) 4451 eo_do(item->eo_obj, text = elm_wdg_item_part_text_get(part));
4698 eo_do(item->eo_obj, text = elm_wdg_item_part_text_get(part));
4699 else
4700 text = elm_widget_item_internal_part_text_get(item, part);
4701 4452
4702 if (!text || !text[0]) return; 4453 if (!text || !text[0]) return;
4703 4454
@@ -4708,22 +4459,13 @@ elm_widget_item_internal_domain_part_text_translatable_set(Elm_Widget_Item_Data
4708 text = dgettext(domain, text); 4459 text = dgettext(domain, text);
4709#endif 4460#endif
4710 item->on_translate = EINA_TRUE; 4461 item->on_translate = EINA_TRUE;
4711 if (item->eo_obj) 4462 eo_do (item->eo_obj, elm_wdg_item_part_text_set(part, text));
4712 eo_do (item->eo_obj, elm_wdg_item_part_text_set(part, text));
4713 else
4714 elm_widget_item_internal_part_text_set(item, part, text);
4715 item->on_translate = EINA_FALSE; 4463 item->on_translate = EINA_FALSE;
4716} 4464}
4717 4465
4718EOLIAN static void 4466EOLIAN static void
4719_elm_widget_item_track_cancel(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item) 4467_elm_widget_item_track_cancel(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item)
4720{ 4468{
4721 elm_widget_item_internal_track_cancel(item);
4722}
4723
4724EAPI void
4725elm_widget_item_internal_track_cancel(Elm_Widget_Item_Data *item)
4726{
4727 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 4469 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
4728 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 4470 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
4729 4471
@@ -4738,12 +4480,6 @@ elm_widget_item_internal_track_cancel(Elm_Widget_Item_Data *item)
4738EOLIAN static Evas_Object * 4480EOLIAN static Evas_Object *
4739_elm_widget_item_track(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item) 4481_elm_widget_item_track(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item)
4740{ 4482{
4741 return elm_widget_item_track(item);
4742}
4743
4744EAPI Evas_Object *
4745elm_widget_item_track(Elm_Widget_Item_Data *item)
4746{
4747 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL); 4483 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL);
4748 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item, NULL); 4484 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item, NULL);
4749 4485
@@ -4780,12 +4516,6 @@ elm_widget_item_track(Elm_Widget_Item_Data *item)
4780EOLIAN static void 4516EOLIAN static void
4781_elm_widget_item_untrack(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item) 4517_elm_widget_item_untrack(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item)
4782{ 4518{
4783 elm_widget_item_untrack(item);
4784}
4785
4786void
4787elm_widget_item_untrack(Elm_Widget_Item_Data *item)
4788{
4789 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 4519 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
4790 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 4520 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
4791 4521
@@ -4799,12 +4529,6 @@ elm_widget_item_untrack(Elm_Widget_Item_Data *item)
4799EOLIAN static int 4529EOLIAN static int
4800_elm_widget_item_track_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item) 4530_elm_widget_item_track_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item)
4801{ 4531{
4802 return elm_widget_item_track_get(item);
4803}
4804
4805int
4806elm_widget_item_track_get(const Elm_Widget_Item_Data *item)
4807{
4808 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, 0); 4532 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, 0);
4809 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item, 0); 4533 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item, 0);
4810 4534
@@ -4876,27 +4600,15 @@ _elm_widget_item_tooltip_text_set(Eo *eo_item EINA_UNUSED,
4876 Elm_Widget_Item_Data *item EINA_UNUSED, 4600 Elm_Widget_Item_Data *item EINA_UNUSED,
4877 const char *text) 4601 const char *text)
4878{ 4602{
4879 elm_widget_item_internal_tooltip_text_set(item, text);
4880}
4881
4882EAPI void
4883elm_widget_item_internal_tooltip_text_set(Elm_Widget_Item_Data *item,
4884 const char *text)
4885{
4886 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 4603 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
4887 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 4604 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
4888 EINA_SAFETY_ON_NULL_RETURN(text); 4605 EINA_SAFETY_ON_NULL_RETURN(text);
4889 4606
4890 text = eina_stringshare_add(text); 4607 text = eina_stringshare_add(text);
4891 if (item->eo_obj) 4608 eo_do(item->eo_obj, elm_wdg_item_tooltip_content_cb_set(
4892 eo_do(item->eo_obj, elm_wdg_item_tooltip_content_cb_set(
4893 _elm_widget_item_tooltip_label_create, 4609 _elm_widget_item_tooltip_label_create,
4894 text, 4610 text,
4895 _elm_widget_item_tooltip_label_del_cb)); 4611 _elm_widget_item_tooltip_label_del_cb));
4896 else
4897 elm_widget_item_internal_tooltip_content_cb_set
4898 (item, _elm_widget_item_tooltip_label_create, text,
4899 _elm_widget_item_tooltip_label_del_cb);
4900} 4612}
4901 4613
4902EOLIAN static void 4614EOLIAN static void
@@ -4904,27 +4616,15 @@ _elm_widget_item_tooltip_translatable_text_set(Eo *eo_item EINA_UNUSED,
4904 Elm_Widget_Item_Data *item EINA_UNUSED, 4616 Elm_Widget_Item_Data *item EINA_UNUSED,
4905 const char *text) 4617 const char *text)
4906{ 4618{
4907 elm_widget_item_internal_tooltip_translatable_text_set(item, text);
4908}
4909
4910EAPI void
4911elm_widget_item_internal_tooltip_translatable_text_set(Elm_Widget_Item_Data *item,
4912 const char *text)
4913{
4914 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 4619 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
4915 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 4620 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
4916 EINA_SAFETY_ON_NULL_RETURN(text); 4621 EINA_SAFETY_ON_NULL_RETURN(text);
4917 4622
4918 text = eina_stringshare_add(text); 4623 text = eina_stringshare_add(text);
4919 if (item->eo_obj) 4624 eo_do(item->eo_obj, elm_wdg_item_tooltip_content_cb_set(
4920 eo_do(item->eo_obj, elm_wdg_item_tooltip_content_cb_set( 4625 _elm_widget_item_tooltip_trans_label_create,
4921 _elm_widget_item_tooltip_trans_label_create, 4626 text,
4922 text, 4627 _elm_widget_item_tooltip_label_del_cb));
4923 _elm_widget_item_tooltip_label_del_cb));
4924 else
4925 elm_widget_item_internal_tooltip_content_cb_set
4926 (item, _elm_widget_item_tooltip_trans_label_create, text,
4927 _elm_widget_item_tooltip_label_del_cb);
4928} 4628}
4929 4629
4930static Evas_Object * 4630static Evas_Object *
@@ -4975,15 +4675,6 @@ _elm_widget_item_tooltip_content_cb_set(Eo *eo_item EINA_UNUSED,
4975 const void *data, 4675 const void *data,
4976 Evas_Smart_Cb del_cb) 4676 Evas_Smart_Cb del_cb)
4977{ 4677{
4978 elm_widget_item_internal_tooltip_content_cb_set(item, func, data, del_cb);
4979}
4980
4981EAPI void
4982elm_widget_item_internal_tooltip_content_cb_set(Elm_Widget_Item_Data *item,
4983 Elm_Tooltip_Item_Content_Cb func,
4984 const void *data,
4985 Evas_Smart_Cb del_cb)
4986{
4987 Elm_Widget_Item_Tooltip *wit; 4678 Elm_Widget_Item_Tooltip *wit;
4988 4679
4989 ELM_WIDGET_ITEM_CHECK_OR_GOTO(item, error_noitem); 4680 ELM_WIDGET_ITEM_CHECK_OR_GOTO(item, error_noitem);
@@ -4991,10 +4682,7 @@ elm_widget_item_internal_tooltip_content_cb_set(Elm_Widget_Item_Data *item,
4991 4682
4992 if (!func) 4683 if (!func)
4993 { 4684 {
4994 if (item->eo_obj) 4685 eo_do(item->eo_obj, elm_wdg_item_tooltip_unset());
4995 eo_do(item->eo_obj, elm_wdg_item_tooltip_unset());
4996 else
4997 elm_widget_item_internal_tooltip_unset(item);
4998 return; 4686 return;
4999 } 4687 }
5000 4688
@@ -5036,12 +4724,6 @@ error:
5036EOLIAN static void 4724EOLIAN static void
5037_elm_widget_item_tooltip_unset(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item) 4725_elm_widget_item_tooltip_unset(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item)
5038{ 4726{
5039 elm_widget_item_internal_tooltip_unset(item);
5040}
5041
5042EAPI void
5043elm_widget_item_internal_tooltip_unset(Elm_Widget_Item_Data *item)
5044{
5045 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 4727 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
5046 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 4728 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
5047 4729
@@ -5067,13 +4749,6 @@ _elm_widget_item_tooltip_style_set(Eo *eo_item EINA_UNUSED,
5067 Elm_Widget_Item_Data *item, 4749 Elm_Widget_Item_Data *item,
5068 const char *style) 4750 const char *style)
5069{ 4751{
5070 elm_widget_item_internal_tooltip_style_set(item, style);
5071}
5072
5073EAPI void
5074elm_widget_item_internal_tooltip_style_set(Elm_Widget_Item_Data *item,
5075 const char *style)
5076{
5077 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 4752 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
5078 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 4753 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
5079 4754
@@ -5085,13 +4760,6 @@ _elm_widget_item_tooltip_window_mode_set(Eo *eo_item EINA_UNUSED,
5085 Elm_Widget_Item_Data *item, 4760 Elm_Widget_Item_Data *item,
5086 Eina_Bool disable) 4761 Eina_Bool disable)
5087{ 4762{
5088 return elm_widget_item_internal_tooltip_window_mode_set(item, disable);
5089}
5090
5091EAPI Eina_Bool
5092elm_widget_item_internal_tooltip_window_mode_set(Elm_Widget_Item_Data *item,
5093 Eina_Bool disable)
5094{
5095 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, EINA_FALSE); 4763 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, EINA_FALSE);
5096 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item, EINA_FALSE); 4764 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item, EINA_FALSE);
5097 4765
@@ -5101,12 +4769,6 @@ elm_widget_item_internal_tooltip_window_mode_set(Elm_Widget_Item_Data *item,
5101EOLIAN static Eina_Bool 4769EOLIAN static Eina_Bool
5102_elm_widget_item_tooltip_window_mode_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item) 4770_elm_widget_item_tooltip_window_mode_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item)
5103{ 4771{
5104 return elm_widget_item_internal_tooltip_window_mode_get(item);
5105}
5106
5107EAPI Eina_Bool
5108elm_widget_item_internal_tooltip_window_mode_get(const Elm_Widget_Item_Data *item)
5109{
5110 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, EINA_FALSE); 4772 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, EINA_FALSE);
5111 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item, EINA_FALSE); 4773 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item, EINA_FALSE);
5112 4774
@@ -5127,12 +4789,6 @@ elm_widget_item_internal_tooltip_window_mode_get(const Elm_Widget_Item_Data *ite
5127EOLIAN static const char * 4789EOLIAN static const char *
5128_elm_widget_item_tooltip_style_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item) 4790_elm_widget_item_tooltip_style_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item)
5129{ 4791{
5130 return elm_widget_item_internal_tooltip_style_get(item);
5131}
5132
5133EAPI const char *
5134elm_widget_item_internal_tooltip_style_get(const Elm_Widget_Item_Data *item)
5135{
5136 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL); 4792 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL);
5137 4793
5138 return elm_object_tooltip_style_get(item->view); 4794 return elm_object_tooltip_style_get(item->view);
@@ -5143,13 +4799,6 @@ _elm_widget_item_cursor_set(Eo *eo_item EINA_UNUSED,
5143 Elm_Widget_Item_Data *item, 4799 Elm_Widget_Item_Data *item,
5144 const char *cursor) 4800 const char *cursor)
5145{ 4801{
5146 elm_widget_item_internal_cursor_set(item, cursor);
5147}
5148
5149EAPI void
5150elm_widget_item_internal_cursor_set(Elm_Widget_Item_Data *item,
5151 const char *cursor)
5152{
5153 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 4802 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
5154 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 4803 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
5155 4804
@@ -5159,12 +4808,6 @@ elm_widget_item_internal_cursor_set(Elm_Widget_Item_Data *item,
5159EOLIAN static const char * 4808EOLIAN static const char *
5160_elm_widget_item_cursor_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item) 4809_elm_widget_item_cursor_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item)
5161{ 4810{
5162 return elm_widget_item_internal_cursor_get(item);
5163}
5164
5165EAPI const char *
5166elm_widget_item_internal_cursor_get(const Elm_Widget_Item_Data *item)
5167{
5168 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL); 4811 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL);
5169 return elm_object_cursor_get(item->view); 4812 return elm_object_cursor_get(item->view);
5170} 4813}
@@ -5172,12 +4815,6 @@ elm_widget_item_internal_cursor_get(const Elm_Widget_Item_Data *item)
5172EOLIAN static void 4815EOLIAN static void
5173_elm_widget_item_cursor_unset(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item) 4816_elm_widget_item_cursor_unset(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item)
5174{ 4817{
5175 elm_widget_item_internal_cursor_unset(item);
5176}
5177
5178EAPI void
5179elm_widget_item_internal_cursor_unset(Elm_Widget_Item_Data *item)
5180{
5181 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 4818 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
5182 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 4819 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
5183 4820
@@ -5202,13 +4839,6 @@ _elm_widget_item_cursor_style_set(Eo *eo_item EINA_UNUSED,
5202 Elm_Widget_Item_Data *item, 4839 Elm_Widget_Item_Data *item,
5203 const char *style) 4840 const char *style)
5204{ 4841{
5205 elm_widget_item_internal_cursor_style_set(item, style);
5206}
5207
5208EAPI void
5209elm_widget_item_internal_cursor_style_set(Elm_Widget_Item_Data *item,
5210 const char *style)
5211{
5212 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 4842 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
5213 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 4843 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
5214 4844
@@ -5230,12 +4860,6 @@ EOLIAN static const char *
5230_elm_widget_item_cursor_style_get(Eo *eo_item EINA_UNUSED, 4860_elm_widget_item_cursor_style_get(Eo *eo_item EINA_UNUSED,
5231 Elm_Widget_Item_Data *item) 4861 Elm_Widget_Item_Data *item)
5232{ 4862{
5233 return elm_widget_item_internal_cursor_style_get(item);
5234}
5235
5236EAPI const char *
5237elm_widget_item_internal_cursor_style_get(const Elm_Widget_Item_Data *item)
5238{
5239 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL); 4863 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL);
5240 return elm_object_cursor_style_get(item->view); 4864 return elm_object_cursor_style_get(item->view);
5241} 4865}
@@ -5261,13 +4885,6 @@ _elm_widget_item_cursor_engine_only_set(Eo *eo_item EINA_UNUSED,
5261 Elm_Widget_Item_Data *item, 4885 Elm_Widget_Item_Data *item,
5262 Eina_Bool engine_only) 4886 Eina_Bool engine_only)
5263{ 4887{
5264 elm_widget_item_internal_cursor_engine_only_set(item, engine_only);
5265}
5266
5267EAPI void
5268elm_widget_item_internal_cursor_engine_only_set(Elm_Widget_Item_Data *item,
5269 Eina_Bool engine_only)
5270{
5271 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 4888 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
5272 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 4889 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
5273 4890
@@ -5289,32 +4906,10 @@ elm_widget_item_internal_cursor_engine_only_set(Elm_Widget_Item_Data *item,
5289EOLIAN static Eina_Bool 4906EOLIAN static Eina_Bool
5290_elm_widget_item_cursor_engine_only_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item) 4907_elm_widget_item_cursor_engine_only_get(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item)
5291{ 4908{
5292 return elm_widget_item_internal_cursor_engine_only_get(item);
5293}
5294
5295EAPI Eina_Bool
5296elm_widget_item_internal_cursor_engine_only_get(const Elm_Widget_Item_Data *item)
5297{
5298 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, EINA_FALSE); 4909 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, EINA_FALSE);
5299 return !elm_object_cursor_theme_search_enabled_get(item->view); 4910 return !elm_object_cursor_theme_search_enabled_get(item->view);
5300} 4911}
5301 4912
5302EAPI void
5303elm_widget_item_internal_part_content_set(Elm_Widget_Item_Data *item,
5304 const char *part,
5305 Evas_Object *content)
5306{
5307 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
5308 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
5309 if (!item->content_set_func)
5310 {
5311 ERR("%s does not support elm_object_item_part_content_set() API.",
5312 elm_widget_type_get(item->widget));
5313 return;
5314 }
5315 item->content_set_func((Elm_Object_Item *)item, part, content);
5316}
5317
5318EOLIAN static void 4913EOLIAN static void
5319_elm_widget_item_part_content_set(Eo *eo_item EINA_UNUSED, 4914_elm_widget_item_part_content_set(Eo *eo_item EINA_UNUSED,
5320 Elm_Widget_Item_Data *item, 4915 Elm_Widget_Item_Data *item,
@@ -5324,21 +4919,6 @@ _elm_widget_item_part_content_set(Eo *eo_item EINA_UNUSED,
5324 ERR_NOT_SUPPORTED(item, "elm_object_part_content_set()"); 4919 ERR_NOT_SUPPORTED(item, "elm_object_part_content_set()");
5325} 4920}
5326 4921
5327EAPI Evas_Object *
5328elm_widget_item_internal_part_content_get(const Elm_Widget_Item_Data *item,
5329 const char *part)
5330{
5331 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL);
5332 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item, NULL);
5333 if (!item->content_get_func)
5334 {
5335 ERR("%s does not support elm_object_item_part_content_get() API.",
5336 elm_widget_type_get(item->widget));
5337 return NULL;
5338 }
5339 return item->content_get_func((Elm_Object_Item *)item, part);
5340}
5341
5342EOLIAN static Evas_Object * 4922EOLIAN static Evas_Object *
5343_elm_widget_item_part_content_get(Eo *eo_item EINA_UNUSED, 4923_elm_widget_item_part_content_get(Eo *eo_item EINA_UNUSED,
5344 Elm_Widget_Item_Data *item, 4924 Elm_Widget_Item_Data *item,
@@ -5348,21 +4928,6 @@ _elm_widget_item_part_content_get(Eo *eo_item EINA_UNUSED,
5348 return NULL; 4928 return NULL;
5349} 4929}
5350 4930
5351EAPI Evas_Object *
5352elm_widget_item_internal_part_content_unset(Elm_Widget_Item_Data *item,
5353 const char *part)
5354{
5355 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL);
5356 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item, NULL);
5357 if (!item->content_unset_func)
5358 {
5359 ERR("%s does not support elm_object_item_part_content_unset() API.",
5360 elm_widget_type_get(item->widget));
5361 return NULL;
5362 }
5363 return item->content_unset_func((Elm_Object_Item *)item, part);
5364}
5365
5366EOLIAN static Evas_Object * 4931EOLIAN static Evas_Object *
5367_elm_widget_item_part_content_unset(Eo *eo_item EINA_UNUSED, 4932_elm_widget_item_part_content_unset(Eo *eo_item EINA_UNUSED,
5368 Elm_Widget_Item_Data *item, 4933 Elm_Widget_Item_Data *item,
@@ -5372,22 +4937,6 @@ _elm_widget_item_part_content_unset(Eo *eo_item EINA_UNUSED,
5372 return NULL; 4937 return NULL;
5373} 4938}
5374 4939
5375EAPI void
5376elm_widget_item_internal_part_text_set(Elm_Widget_Item_Data *item,
5377 const char *part,
5378 const char *label)
5379{
5380 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
5381 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
5382 if (!item->text_set_func)
5383 {
5384 ERR("%s does not support elm_object_item_part_text_set() API.",
5385 elm_widget_type_get(item->widget));
5386 return;
5387 }
5388 item->text_set_func((Elm_Object_Item *)item, part, label);
5389}
5390
5391EOLIAN static void 4940EOLIAN static void
5392_elm_widget_item_part_text_set(Eo *eo_item EINA_UNUSED, 4941_elm_widget_item_part_text_set(Eo *eo_item EINA_UNUSED,
5393 Elm_Widget_Item_Data *item, 4942 Elm_Widget_Item_Data *item,
@@ -5397,21 +4946,6 @@ _elm_widget_item_part_text_set(Eo *eo_item EINA_UNUSED,
5397 ERR_NOT_SUPPORTED(item, "elm_object_part_text_set()"); 4946 ERR_NOT_SUPPORTED(item, "elm_object_part_text_set()");
5398} 4947}
5399 4948
5400EAPI const char *
5401elm_widget_item_internal_part_text_get(const Elm_Widget_Item_Data *item,
5402 const char *part)
5403{
5404 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL);
5405 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item, NULL);
5406 if (!item->text_get_func)
5407 {
5408 ERR("%s does not support elm_object_item_part_text_get() API.",
5409 elm_widget_type_get(item->widget));
5410 return NULL;
5411 }
5412 return item->text_get_func((Elm_Object_Item *)item, part);
5413}
5414
5415EOLIAN static const char * 4949EOLIAN static const char *
5416_elm_widget_item_part_text_get(Eo *eo_item EINA_UNUSED, 4950_elm_widget_item_part_text_get(Eo *eo_item EINA_UNUSED,
5417 Elm_Widget_Item_Data *item, 4951 Elm_Widget_Item_Data *item,
@@ -5437,24 +4971,10 @@ _elm_widget_item_part_text_custom_set(Eo *eo_item EINA_UNUSED,
5437 const char *part, 4971 const char *part,
5438 const char *text) 4972 const char *text)
5439{ 4973{
5440 _elm_widget_item_internal_part_text_custom_set(item, part, text);
5441}
5442
5443EAPI void
5444_elm_widget_item_internal_part_text_custom_set(Elm_Widget_Item_Data *item,
5445 const char *part,
5446 const char *text)
5447{
5448 Elm_Label_Data *label; 4974 Elm_Label_Data *label;
5449 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 4975 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
5450 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 4976 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
5451 4977
5452 if (!item->text_get_func)
5453 {
5454 ERR("%s does not support elm_object_item_part_text_get() API.",
5455 elm_widget_type_get(item->widget));
5456 return;
5457 }
5458 if (!item->labels) 4978 if (!item->labels)
5459 item->labels = 4979 item->labels =
5460 eina_hash_stringshared_new(_elm_widget_item_part_text_custom_free); 4980 eina_hash_stringshared_new(_elm_widget_item_part_text_custom_free);
@@ -5475,13 +4995,6 @@ _elm_widget_item_part_text_custom_get(Eo *eo_item EINA_UNUSED,
5475 Elm_Widget_Item_Data *item, 4995 Elm_Widget_Item_Data *item,
5476 const char *part) 4996 const char *part)
5477{ 4997{
5478 return _elm_widget_item_internal_part_text_custom_get(item, part);
5479}
5480
5481EAPI const char *
5482_elm_widget_item_internal_part_text_custom_get(Elm_Widget_Item_Data *item,
5483 const char *part)
5484{
5485 Elm_Label_Data *label; 4998 Elm_Label_Data *label;
5486 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL); 4999 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL);
5487 label = eina_hash_find(item->labels, part); 5000 label = eina_hash_find(item->labels, part);
@@ -5499,10 +5012,7 @@ _elm_widget_item_part_text_custom_foreach(const Eina_Hash *labels EINA_UNUSED,
5499 label = data; 5012 label = data;
5500 item = func_data; 5013 item = func_data;
5501 5014
5502 if (item->eo_obj) 5015 eo_do(item->eo_obj, elm_wdg_item_part_text_set(label->part, label->text));
5503 eo_do(item->eo_obj, elm_wdg_item_part_text_set(label->part, label->text));
5504 else
5505 item->text_set_func((Elm_Object_Item *)item, label->part, label->text);
5506 5016
5507 return EINA_TRUE; 5017 return EINA_TRUE;
5508} 5018}
@@ -5510,12 +5020,6 @@ _elm_widget_item_part_text_custom_foreach(const Eina_Hash *labels EINA_UNUSED,
5510EOLIAN static void 5020EOLIAN static void
5511_elm_widget_item_part_text_custom_update(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item) 5021_elm_widget_item_part_text_custom_update(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item)
5512{ 5022{
5513 _elm_widget_item_internal_part_text_custom_update(item);
5514}
5515
5516EAPI void
5517_elm_widget_item_internal_part_text_custom_update(Elm_Widget_Item_Data *item)
5518{
5519 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 5023 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
5520 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 5024 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
5521 if (item->labels) 5025 if (item->labels)
@@ -5523,56 +5027,6 @@ _elm_widget_item_internal_part_text_custom_update(Elm_Widget_Item_Data *item)
5523 _elm_widget_item_part_text_custom_foreach, item); 5027 _elm_widget_item_part_text_custom_foreach, item);
5524} 5028}
5525 5029
5526EAPI void
5527_elm_widget_item_content_set_hook_set(Elm_Widget_Item_Data *item,
5528 Elm_Widget_Content_Set_Cb func)
5529{
5530 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
5531 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
5532
5533 item->content_set_func = func;
5534}
5535
5536EAPI void
5537_elm_widget_item_content_get_hook_set(Elm_Widget_Item_Data *item,
5538 Elm_Widget_Content_Get_Cb func)
5539{
5540 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
5541 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
5542
5543 item->content_get_func = func;
5544}
5545
5546EAPI void
5547_elm_widget_item_content_unset_hook_set(Elm_Widget_Item_Data *item,
5548 Elm_Widget_Content_Unset_Cb func)
5549{
5550 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
5551 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
5552
5553 item->content_unset_func = func;
5554}
5555
5556EAPI void
5557_elm_widget_item_text_set_hook_set(Elm_Widget_Item_Data *item,
5558 Elm_Widget_Text_Set_Cb func)
5559{
5560 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
5561 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
5562
5563 item->text_set_func = func;
5564}
5565
5566EAPI void
5567_elm_widget_item_text_get_hook_set(Elm_Widget_Item_Data *item,
5568 Elm_Widget_Text_Get_Cb func)
5569{
5570 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
5571 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
5572
5573 item->text_get_func = func;
5574}
5575
5576EOLIAN static void 5030EOLIAN static void
5577_elm_widget_item_signal_emit(Eo *eo_item EINA_UNUSED, 5031_elm_widget_item_signal_emit(Eo *eo_item EINA_UNUSED,
5578 Elm_Widget_Item_Data *item EINA_UNUSED, 5032 Elm_Widget_Item_Data *item EINA_UNUSED,
@@ -5582,28 +5036,6 @@ _elm_widget_item_signal_emit(Eo *eo_item EINA_UNUSED,
5582 5036
5583} 5037}
5584 5038
5585EAPI void
5586elm_widget_item_internal_signal_emit(Elm_Widget_Item_Data *item,
5587 const char *emission,
5588 const char *source)
5589{
5590 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
5591 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
5592
5593 if (item->signal_emit_func)
5594 item->signal_emit_func((Elm_Object_Item *)item, emission, source);
5595}
5596
5597EAPI void
5598_elm_widget_item_signal_emit_hook_set(Elm_Widget_Item_Data *item,
5599 Elm_Widget_Signal_Emit_Cb func)
5600{
5601 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
5602 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
5603
5604 item->signal_emit_func = func;
5605}
5606
5607EOLIAN static void 5039EOLIAN static void
5608_elm_widget_item_signal_callback_add(Eo *eo_item EINA_UNUSED, 5040_elm_widget_item_signal_callback_add(Eo *eo_item EINA_UNUSED,
5609 Elm_Widget_Item_Data *item, 5041 Elm_Widget_Item_Data *item,
@@ -5612,16 +5044,6 @@ _elm_widget_item_signal_callback_add(Eo *eo_item EINA_UNUSED,
5612 Elm_Object_Item_Signal_Cb func, 5044 Elm_Object_Item_Signal_Cb func,
5613 void *data) 5045 void *data)
5614{ 5046{
5615 elm_widget_item_internal_signal_callback_add(item, emission, source,(Elm_Widget_Item_Signal_Cb)func, data);
5616}
5617
5618EAPI void
5619elm_widget_item_internal_signal_callback_add(Elm_Widget_Item_Data *item,
5620 const char *emission,
5621 const char *source,
5622 Elm_Widget_Item_Signal_Cb func,
5623 void *data)
5624{
5625 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 5047 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
5626 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 5048 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
5627 EINA_SAFETY_ON_NULL_RETURN(func); 5049 EINA_SAFETY_ON_NULL_RETURN(func);
@@ -5632,7 +5054,7 @@ elm_widget_item_internal_signal_callback_add(Elm_Widget_Item_Data *item,
5632 if (!wisd) return; 5054 if (!wisd) return;
5633 5055
5634 wisd->item = item; 5056 wisd->item = item;
5635 wisd->func = func; 5057 wisd->func = (Elm_Widget_Item_Signal_Cb)func;
5636 wisd->data = data; 5058 wisd->data = data;
5637 wisd->emission = eina_stringshare_add(emission); 5059 wisd->emission = eina_stringshare_add(emission);
5638 wisd->source = eina_stringshare_add(source); 5060 wisd->source = eina_stringshare_add(source);
@@ -5659,15 +5081,6 @@ _elm_widget_item_signal_callback_del(Eo *eo_item EINA_UNUSED,
5659 const char *source, 5081 const char *source,
5660 Elm_Object_Item_Signal_Cb func) 5082 Elm_Object_Item_Signal_Cb func)
5661{ 5083{
5662 return elm_widget_item_internal_signal_callback_del(item, emission, source, (Elm_Widget_Item_Signal_Cb)func);
5663}
5664
5665EAPI void *
5666elm_widget_item_internal_signal_callback_del(Elm_Widget_Item_Data *item,
5667 const char *emission,
5668 const char *source,
5669 Elm_Widget_Item_Signal_Cb func)
5670{
5671 Elm_Widget_Item_Signal_Data *wisd; 5084 Elm_Widget_Item_Signal_Data *wisd;
5672 Eina_List *l; 5085 Eina_List *l;
5673 5086
@@ -5677,7 +5090,7 @@ elm_widget_item_internal_signal_callback_del(Elm_Widget_Item_Data *item,
5677 5090
5678 EINA_LIST_FOREACH(item->signals, l, wisd) 5091 EINA_LIST_FOREACH(item->signals, l, wisd)
5679 { 5092 {
5680 if ((wisd->func == func) && 5093 if ((wisd->func == (Elm_Widget_Item_Signal_Cb)func) &&
5681 !strcmp(wisd->emission, emission) && 5094 !strcmp(wisd->emission, emission) &&
5682 !strcmp(wisd->source, source)) 5095 !strcmp(wisd->source, source))
5683 return _elm_widget_item_signal_callback_list_get(item, l); 5096 return _elm_widget_item_signal_callback_list_get(item, l);
@@ -5691,13 +5104,6 @@ _elm_widget_item_access_info_set(Eo *eo_item EINA_UNUSED,
5691 Elm_Widget_Item_Data *item, 5104 Elm_Widget_Item_Data *item,
5692 const char *txt) 5105 const char *txt)
5693{ 5106{
5694 _elm_widget_item_internal_access_info_set(item, txt);
5695}
5696
5697EAPI void
5698_elm_widget_item_internal_access_info_set(Elm_Widget_Item_Data *item,
5699 const char *txt)
5700{
5701 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 5107 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
5702 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 5108 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
5703 5109
@@ -5709,12 +5115,6 @@ _elm_widget_item_internal_access_info_set(Elm_Widget_Item_Data *item,
5709EOLIAN static void 5115EOLIAN static void
5710_elm_widget_item_translate(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item) 5116_elm_widget_item_translate(Eo *eo_item EINA_UNUSED, Elm_Widget_Item_Data *item)
5711{ 5117{
5712 elm_widget_item_internal_translate(item);
5713}
5714
5715EAPI void
5716elm_widget_item_internal_translate(Elm_Widget_Item_Data *item)
5717{
5718 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 5118 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
5719 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 5119 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
5720 5120
@@ -5725,10 +5125,7 @@ elm_widget_item_internal_translate(Elm_Widget_Item_Data *item)
5725 if (!ts->string) continue; 5125 if (!ts->string) continue;
5726 const char *s = dgettext(ts->domain, ts->string); 5126 const char *s = dgettext(ts->domain, ts->string);
5727 item->on_translate = EINA_TRUE; 5127 item->on_translate = EINA_TRUE;
5728 if (item->eo_obj) 5128 eo_do(item->eo_obj, elm_wdg_item_part_text_set(ts->id, s));
5729 eo_do(item->eo_obj, elm_wdg_item_part_text_set(ts->id, s));
5730 else
5731 elm_widget_item_internal_part_text_set(item, ts->id, s);
5732 item->on_translate = EINA_FALSE; 5129 item->on_translate = EINA_FALSE;
5733 } 5130 }
5734#endif 5131#endif
diff --git a/src/lib/elm_widget.h b/src/lib/elm_widget.h
index 7d1931ed7..c84bacb08 100644
--- a/src/lib/elm_widget.h
+++ b/src/lib/elm_widget.h
@@ -593,17 +593,6 @@ struct _Elm_Widget_Item_Data
593 /**< widget delete callback function. don't expose this callback call */ 593 /**< widget delete callback function. don't expose this callback call */
594 Elm_Widget_Del_Pre_Cb del_pre_func; 594 Elm_Widget_Del_Pre_Cb del_pre_func;
595 595
596 Elm_Widget_Content_Set_Cb content_set_func;
597 Elm_Widget_Content_Get_Cb content_get_func;
598 Elm_Widget_Content_Unset_Cb content_unset_func;
599 Elm_Widget_Text_Set_Cb text_set_func;
600 Elm_Widget_Text_Get_Cb text_get_func;
601 Elm_Widget_Signal_Emit_Cb signal_emit_func;
602 Elm_Widget_Disable_Cb disable_func;
603 Elm_Widget_Style_Set_Cb style_set_func;
604 Elm_Widget_Style_Get_Cb style_get_func;
605 Elm_Widget_Focus_Set_Cb focus_set_func;
606 Elm_Widget_Focus_Get_Cb focus_get_func;
607 Evas_Object *access_obj; 596 Evas_Object *access_obj;
608 const char *access_info; 597 const char *access_info;
609 Eina_List *access_order; 598 Eina_List *access_order;
@@ -763,69 +752,6 @@ EAPI Elm_Object_Item *elm_widget_focused_item_get(const Evas_Object *obj);
763EAPI void elm_widget_orientation_mode_disabled_set(Evas_Object *obj, Eina_Bool disabled); 752EAPI void elm_widget_orientation_mode_disabled_set(Evas_Object *obj, Eina_Bool disabled);
764EAPI Eina_Bool elm_widget_orientation_mode_disabled_get(const Evas_Object *obj); 753EAPI Eina_Bool elm_widget_orientation_mode_disabled_get(const Evas_Object *obj);
765EAPI void elm_widget_focus_highlight_geometry_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h); 754EAPI void elm_widget_focus_highlight_geometry_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
766EAPI Elm_Widget_Item_Data *_elm_widget_item_new(Evas_Object *parent, size_t alloc_size);
767EAPI void _elm_widget_item_free(Elm_Widget_Item_Data *item);
768EAPI Evas_Object *elm_widget_item_internal_widget_get(const Elm_Widget_Item_Data *item);
769EAPI void _elm_widget_item_internal_del(Elm_Widget_Item_Data *item);
770EAPI void elm_widget_item_internal_pre_notify_del(Elm_Widget_Item_Data *item);
771EAPI void elm_widget_item_internal_del_cb_set(Elm_Widget_Item_Data *item, Evas_Smart_Cb del_cb);
772EAPI void elm_widget_item_internal_data_set(Elm_Widget_Item_Data *item, const void *data);
773EAPI void *elm_widget_item_internal_data_get(const Elm_Widget_Item_Data *item);
774EAPI void elm_widget_item_internal_tooltip_text_set(Elm_Widget_Item_Data *item, const char *text);
775EAPI void elm_widget_item_internal_tooltip_translatable_text_set(Elm_Widget_Item_Data *item, const char *text);
776EAPI void elm_widget_item_internal_tooltip_content_cb_set(Elm_Widget_Item_Data *item, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb);
777EAPI void elm_widget_item_internal_tooltip_unset(Elm_Widget_Item_Data *item);
778EAPI void elm_widget_item_internal_tooltip_style_set(Elm_Widget_Item_Data *item, const char *style);
779EAPI Eina_Bool elm_widget_item_internal_tooltip_window_mode_set(Elm_Widget_Item_Data *item, Eina_Bool disable);
780EAPI Eina_Bool elm_widget_item_internal_tooltip_window_mode_get(const Elm_Widget_Item_Data *item);
781EAPI const char *elm_widget_item_internal_tooltip_style_get(const Elm_Widget_Item_Data *item);
782EAPI void elm_widget_item_internal_cursor_set(Elm_Widget_Item_Data *item, const char *cursor);
783EAPI const char *elm_widget_item_internal_cursor_get(const Elm_Widget_Item_Data *item);
784EAPI void elm_widget_item_internal_cursor_unset(Elm_Widget_Item_Data *item);
785EAPI void elm_widget_item_internal_cursor_style_set(Elm_Widget_Item_Data *item, const char *style);
786EAPI const char *elm_widget_item_internal_cursor_style_get(const Elm_Widget_Item_Data *item);
787EAPI void elm_widget_item_internal_cursor_engine_only_set(Elm_Widget_Item_Data *item, Eina_Bool engine_only);
788EAPI Eina_Bool elm_widget_item_internal_cursor_engine_only_get(const Elm_Widget_Item_Data *item);
789EAPI void elm_widget_item_internal_part_content_set(Elm_Widget_Item_Data *item, const char *part, Evas_Object *content);
790EAPI Evas_Object *elm_widget_item_internal_part_content_get(const Elm_Widget_Item_Data *item, const char *part);
791EAPI Evas_Object *elm_widget_item_internal_part_content_unset(Elm_Widget_Item_Data *item, const char *part);
792EAPI void elm_widget_item_internal_part_text_set(Elm_Widget_Item_Data *item, const char *part, const char *label);
793EAPI const char *elm_widget_item_internal_part_text_get(const Elm_Widget_Item_Data *item, const char *part);
794EAPI void _elm_widget_item_internal_part_text_custom_set(Elm_Widget_Item_Data *item, const char *part, const char *label);
795EAPI const char *_elm_widget_item_internal_part_text_custom_get(Elm_Widget_Item_Data *item, const char *part);
796EAPI void _elm_widget_item_internal_part_text_custom_update(Elm_Widget_Item_Data *item);
797EAPI void elm_widget_item_internal_focus_set(Elm_Widget_Item_Data *item, Eina_Bool focused);
798EAPI Eina_Bool elm_widget_item_internal_focus_get(const Elm_Widget_Item_Data *item);
799EAPI void elm_widget_item_internal_style_set(Elm_Widget_Item_Data *item, const char *style);
800EAPI const char *elm_widget_item_internal_style_get(Elm_Widget_Item_Data *item);
801
802EAPI void elm_widget_item_internal_signal_callback_add(Elm_Widget_Item_Data *item, const char *emission, const char *source, Elm_Widget_Item_Signal_Cb func, void *data);
803EAPI void *elm_widget_item_internal_signal_callback_del(Elm_Widget_Item_Data *it, const char *emission, const char *source, Elm_Widget_Item_Signal_Cb func);
804EAPI void elm_widget_item_internal_signal_emit(Elm_Widget_Item_Data *item, const char *emission, const char *source);
805EAPI void _elm_widget_item_content_set_hook_set(Elm_Widget_Item_Data *item, Elm_Widget_Content_Set_Cb func);
806EAPI void _elm_widget_item_content_get_hook_set(Elm_Widget_Item_Data *item, Elm_Widget_Content_Get_Cb func);
807EAPI void _elm_widget_item_content_unset_hook_set(Elm_Widget_Item_Data *item, Elm_Widget_Content_Unset_Cb func);
808EAPI void _elm_widget_item_text_set_hook_set(Elm_Widget_Item_Data *item, Elm_Widget_Text_Set_Cb func);
809EAPI void _elm_widget_item_text_get_hook_set(Elm_Widget_Item_Data *item, Elm_Widget_Text_Get_Cb func);
810EAPI void _elm_widget_item_signal_emit_hook_set(Elm_Widget_Item_Data *it, Elm_Widget_Signal_Emit_Cb func);
811EAPI void _elm_widget_item_internal_access_info_set(Elm_Widget_Item_Data *item, const char *txt);
812EAPI void elm_widget_item_internal_disabled_set(Elm_Widget_Item_Data *item, Eina_Bool disabled);
813EAPI Eina_Bool elm_widget_item_internal_disabled_get(const Elm_Widget_Item_Data *item);
814EAPI void _elm_widget_item_disable_hook_set(Elm_Widget_Item_Data *item, Elm_Widget_Disable_Cb func);
815EAPI void _elm_widget_item_del_pre_hook_set(Elm_Widget_Item_Data *item, Elm_Widget_Del_Pre_Cb func);
816EAPI void _elm_widget_item_style_set_hook_set(Elm_Widget_Item_Data *item, Elm_Widget_Style_Set_Cb func);
817EAPI void _elm_widget_item_style_get_hook_set(Elm_Widget_Item_Data *item, Elm_Widget_Style_Get_Cb func);
818EAPI void _elm_widget_item_focus_get_hook_set(Elm_Widget_Item_Data *item, Elm_Widget_Focus_Get_Cb func);
819EAPI void _elm_widget_item_focus_set_hook_set(Elm_Widget_Item_Data *item, Elm_Widget_Focus_Set_Cb func);
820EAPI void elm_widget_item_internal_domain_translatable_part_text_set(Elm_Widget_Item_Data *item, const char *part, const char *domain, const char *label);
821EAPI const char * elm_widget_item_internal_translatable_part_text_get(const Elm_Widget_Item_Data *item, const char *part);
822EAPI void elm_widget_item_internal_translate(Elm_Widget_Item_Data *item);
823EAPI void elm_widget_item_internal_domain_part_text_translatable_set(Elm_Widget_Item_Data *item, const char *part, const char *domain, Eina_Bool translatable);
824
825EAPI Evas_Object *elm_widget_item_track(Elm_Widget_Item_Data *item);
826EAPI void elm_widget_item_untrack(Elm_Widget_Item_Data *item);
827EAPI int elm_widget_item_track_get(const Elm_Widget_Item_Data *item);
828EAPI void elm_widget_item_internal_track_cancel(Elm_Widget_Item_Data *item);
829void _elm_widget_item_highlight_in_theme(Evas_Object *obj, Elm_Object_Item *it); 755void _elm_widget_item_highlight_in_theme(Evas_Object *obj, Elm_Object_Item *it);
830 756
831/** 757/**
@@ -920,71 +846,10 @@ EAPI void elm_widget_tree_dot_dump(const Evas_Object *top, FILE *out
920#define elm_widget_item_cursor_engine_only_get(item) \ 846#define elm_widget_item_cursor_engine_only_get(item) \
921 elm_widget_item_internal_cursor_engine_only_get((const Elm_Widget_Item_Data *)item) 847 elm_widget_item_internal_cursor_engine_only_get((const Elm_Widget_Item_Data *)item)
922/** 848/**
923 * Convenience function to query item's content set hook.
924 * @see elm_widget_item_internal_content_set_hook_set()
925 */
926#define elm_widget_item_content_set_hook_set(item, func) \
927 _elm_widget_item_content_set_hook_set((Elm_Widget_Item_Data *)item, (Elm_Widget_Content_Set_Cb)func)
928/**
929 * Convenience function to query item's content get hook.
930 * @see elm_widget_item_internal_content_get_hook_set()
931 */
932#define elm_widget_item_content_get_hook_set(item, func) \
933 _elm_widget_item_content_get_hook_set((Elm_Widget_Item_Data *)item, (Elm_Widget_Content_Get_Cb)func)
934/**
935 * Convenience function to query item's content unset hook.
936 * @see elm_widget_item_internal_content_unset_hook_set()
937 */
938#define elm_widget_item_content_unset_hook_set(item, func) \
939 _elm_widget_item_content_unset_hook_set((Elm_Widget_Item_Data *)item, (Elm_Widget_Content_Unset_Cb)func)
940/**
941 * Convenience function to query item's text set hook.
942 * @see elm_widget_item_internal_text_set_hook_set()
943 */
944#define elm_widget_item_text_set_hook_set(item, func) \
945 _elm_widget_item_text_set_hook_set((Elm_Widget_Item_Data *)item, (Elm_Widget_Text_Set_Cb)func)
946/**
947 * Convenience function to query item's text get hook.
948 * @see elm_widget_item_internal_text_get_hook_set()
949 */
950#define elm_widget_item_text_get_hook_set(item, func) \
951 _elm_widget_item_text_get_hook_set((Elm_Widget_Item_Data *)item, (Elm_Widget_Text_Get_Cb)func)
952/**
953 * Convenience function to query item's signal emit hook.
954 * @see elm_widget_item_internal_signal_emit_hook_set()
955 */
956#define elm_widget_item_signal_emit_hook_set(item, func) \
957 _elm_widget_item_signal_emit_hook_set((Elm_Widget_Item_Data *)item, (Elm_Widget_Signal_Emit_Cb)func)
958/**
959 * Convenience function to query disable get hook. 849 * Convenience function to query disable get hook.
960 * @see elm_widget_item_internal_disabled_get() 850 * @see elm_widget_item_internal_disabled_get()
961 */ 851 */
962#define elm_widget_item_disabled_get(item) \ 852#define elm_widget_item_disabled_get(item) \
963 elm_widget_item_internal_disabled_get((Elm_Widget_Item_Data *)item)
964/**
965 * Convenience function to query disable set hook.
966 * @see elm_widget_item_internal_disable_hook_set()
967 */
968#define elm_widget_item_disable_hook_set(item, func) \
969 _elm_widget_item_disable_hook_set((Elm_Widget_Item_Data *)item, (Elm_Widget_Disable_Cb)func)
970/**
971 * Convenience function to query del pre hook.
972 * @see elm_widget_item_internal_del_pre_hook_set()
973 */
974#define elm_widget_item_del_pre_hook_set(item, func) \
975 _elm_widget_item_del_pre_hook_set((Elm_Widget_Item_Data *)item, (Elm_Widget_Del_Pre_Cb)func)
976/**
977 * Convenience function to query style set hook.
978 * @see elm_widget_item_internal_style_set_hook_set()
979 */
980#define elm_widget_item_style_set_hook_set(item, func) \
981 _elm_widget_item_style_set_hook_set((Elm_Widget_Item_Data *)item, (Elm_Widget_Style_Set_Cb)func)
982/**
983 * Convenience function to query style get hook.
984 * @see elm_widget_item_internal_style_get_hook_set()
985 */
986#define elm_widget_item_style_get_hook_set(item, func) \
987 _elm_widget_item_style_get_hook_set((Elm_Widget_Item_Data *)item, (Elm_Widget_Style_Get_Cb)func)
988 853
989#define elm_widget_item_style_set(item, style) \ 854#define elm_widget_item_style_set(item, style) \
990 elm_widget_item_internal_style_set((Elm_Widget_Item_Data *)item, style) 855 elm_widget_item_internal_style_set((Elm_Widget_Item_Data *)item, style)
@@ -992,20 +857,6 @@ EAPI void elm_widget_tree_dot_dump(const Evas_Object *top, FILE *out
992 elm_widget_item_internal_style_get((Elm_Widget_Item_Data *)item) 857 elm_widget_item_internal_style_get((Elm_Widget_Item_Data *)item)
993 858
994/** 859/**
995 * Convenience function to query focus set hook.
996 * @see elm_widget_item_internal_focus_set_hook_set()
997 */
998#define elm_widget_item_focus_set_hook_set(item, func) \
999 _elm_widget_item_focus_set_hook_set((Elm_Widget_Item_Data *)item, (Elm_Widget_Focus_Set_Cb)func)
1000
1001/**
1002 * Convenience function to query focus get hook.
1003 * @see elm_widget_item_internal_focus_get_hook_set()
1004 */
1005#define elm_widget_item_focus_get_hook_set(item, func) \
1006 _elm_widget_item_focus_get_hook_set((Elm_Widget_Item_Data *)item, (Elm_Widget_Focus_Get_Cb)func)
1007
1008/**
1009 * Convenience function to query track_cancel. 860 * Convenience function to query track_cancel.
1010 * @see elm_widget_item_internal_del_pre_hook_set() 861 * @see elm_widget_item_internal_del_pre_hook_set()
1011 */ 862 */