summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-23 19:25:44 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-23 20:53:20 +0900
commit8a20251795317a948f5e72d8fcd996b1e5983984 (patch)
treed5253922c02c4088bb534bc6b3551bc5c500a73a
parentfcae72b0e3057776bc75d4865cfb51be6eb72a98 (diff)
widget: Remove highlight_in_theme from EO
Removes EO APIs: - highlight_in_theme - access_highlight_in_theme Ref T5363
-rw-r--r--src/lib/elementary/elm_widget.c32
-rw-r--r--src/lib/elementary/elm_widget.eo12
2 files changed, 24 insertions, 20 deletions
diff --git a/src/lib/elementary/elm_widget.c b/src/lib/elementary/elm_widget.c
index abbae709c7..26b676f708 100644
--- a/src/lib/elementary/elm_widget.c
+++ b/src/lib/elementary/elm_widget.c
@@ -1856,9 +1856,13 @@ _elm_widget_highlight_ignore_get(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *sd)
1856 return sd->highlight_ignore; 1856 return sd->highlight_ignore;
1857} 1857}
1858 1858
1859EOLIAN static void 1859/** @internal */
1860_elm_widget_highlight_in_theme_set(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *sd, Eina_Bool highlight) 1860EAPI void
1861elm_widget_highlight_in_theme_set(Eo *obj, Eina_Bool highlight)
1861{ 1862{
1863 Elm_Widget_Smart_Data *sd = efl_data_scope_safe_get(obj, MY_CLASS);
1864 if (!sd) return;
1865
1862 sd->highlight_in_theme = !!highlight; 1866 sd->highlight_in_theme = !!highlight;
1863 /* FIXME: if focused, it should switch from one mode to the other */ 1867 /* FIXME: if focused, it should switch from one mode to the other */
1864} 1868}
@@ -1875,21 +1879,33 @@ _elm_widget_highlight_in_theme_update(Eo *obj)
1875 } 1879 }
1876} 1880}
1877 1881
1878EOLIAN static Eina_Bool 1882/** @internal */
1879_elm_widget_highlight_in_theme_get(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *sd) 1883EAPI Eina_Bool
1884elm_widget_highlight_in_theme_get(const Eo *obj)
1880{ 1885{
1886 Elm_Widget_Smart_Data *sd = efl_data_scope_safe_get(obj, MY_CLASS);
1887 if (!sd) return EINA_FALSE;
1888
1881 return sd->highlight_in_theme; 1889 return sd->highlight_in_theme;
1882} 1890}
1883 1891
1884EOLIAN static void 1892/** @internal */
1885_elm_widget_access_highlight_in_theme_set(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *sd, Eina_Bool highlight) 1893EAPI void
1894elm_widget_access_highlight_in_theme_set(Eo *obj, Eina_Bool highlight)
1886{ 1895{
1896 Elm_Widget_Smart_Data *sd = efl_data_scope_safe_get(obj, MY_CLASS);
1897 if (!sd) return;
1898
1887 sd->access_highlight_in_theme = !!highlight; 1899 sd->access_highlight_in_theme = !!highlight;
1888} 1900}
1889 1901
1890EOLIAN static Eina_Bool 1902/** @internal */
1891_elm_widget_access_highlight_in_theme_get(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *sd) 1903EAPI Eina_Bool
1904elm_widget_access_highlight_in_theme_get(const Eo *obj)
1892{ 1905{
1906 Elm_Widget_Smart_Data *sd = efl_data_scope_safe_get(obj, MY_CLASS);
1907 if (!sd) return EINA_FALSE;
1908
1893 return sd->access_highlight_in_theme; 1909 return sd->access_highlight_in_theme;
1894} 1910}
1895 1911
diff --git a/src/lib/elementary/elm_widget.eo b/src/lib/elementary/elm_widget.eo
index 2c9454ef1c..ed2b337445 100644
--- a/src/lib/elementary/elm_widget.eo
+++ b/src/lib/elementary/elm_widget.eo
@@ -273,12 +273,6 @@ abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible,
273 } 273 }
274 } 274 }
275 } 275 }
276 @property highlight_in_theme {
277 [[Highlight in theme property]]
278 values {
279 highlight: bool; [[$true if widget gets hightlight, $false otherwise]]
280 }
281 }
282 @property access_info { 276 @property access_info {
283 [[Accessibility information]] 277 [[Accessibility information]]
284 values { 278 values {
@@ -291,12 +285,6 @@ abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible,
291 lock: bool; [[$true if drag is locked on X axis, $false otherwise]] 285 lock: bool; [[$true if drag is locked on X axis, $false otherwise]]
292 } 286 }
293 } 287 }
294 @property access_highlight_in_theme {
295 [[Accessibility highlight in theme]]
296 values {
297 highlight: bool; [[$true if highlighted, $false otherwise]]
298 }
299 }
300 @property focus_region_show_mode { 288 @property focus_region_show_mode {
301 [[Control the focus_region_show mode.]] 289 [[Control the focus_region_show mode.]]
302 values { 290 values {