X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Flib%2Felm_win.c;h=788bf71d0041f25e83d92e92bd545c9094b62a17;hb=327f42120d173f1acb8b095297a21f004fbe6172;hp=67aa39ba497144be0dbeeb40bb12599eb4bd425f;hpb=14ba5d33a5c0b2a7358a1f1e62f1778e2f5ce866;p=framework%2Fuifw%2Felementary.git diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c index 67aa39b..788bf71 100644 --- a/src/lib/elm_win.c +++ b/src/lib/elm_win.c @@ -2951,6 +2951,52 @@ elm_win_focus_highlight_style_get(const Evas_Object *obj) return win->focus_highlight.style; } +EAPI void +elm_win_indicator_state_set(Evas_Object *obj, int show_state) +{ + Elm_Win *win; + if (strcmp(elm_widget_type_get(obj), "win")) return; + win = elm_widget_data_get(obj); + if (!win) return; +#ifdef HAVE_ELEMENTARY_X + _elm_win_xwindow_get(win); + if (win->xwin) + return ecore_x_window_prop_property_set (win->xwin, + ECORE_X_ATOM_E_ILLUME_INDICATOR_STATE, ECORE_X_ATOM_CARDINAL, 32, &show_state, 1); +#endif + return; +} + +EAPI int +elm_win_indicator_state_get(Evas_Object *obj) +{ + Elm_Win *win; + if (strcmp(elm_widget_type_get(obj), "win")) return -1; + win = elm_widget_data_get(obj); + if (!win) return -1; +#ifdef HAVE_ELEMENTARY_X + _elm_win_xwindow_get(win); + if (win->xwin) + { + int ret; + int count; + int show = -1; + unsigned int *prop_data = NULL; + + ret = ecore_x_window_prop_property_get (win->xwin, + ECORE_X_ATOM_E_ILLUME_INDICATOR_STATE, ECORE_X_ATOM_CARDINAL, 32, (void *)&prop_data, &count); + if( ret && prop_data ) + memcpy (&show, prop_data, sizeof (int)); + + if (prop_data) free (prop_data); + + return show; + } +#endif + return -1; +} + + typedef struct _Widget_Data Widget_Data; struct _Widget_Data