diff --git a/legacy/elementary/src/lib/Elementary.h.in b/legacy/elementary/src/lib/Elementary.h.in index 0ad862731f..efb9aa22a9 100644 --- a/legacy/elementary/src/lib/Elementary.h.in +++ b/legacy/elementary/src/lib/Elementary.h.in @@ -276,6 +276,8 @@ extern "C" { EAPI Eina_Bool elm_win_sticky_get(Evas_Object *obj); EAPI void elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant); EAPI Eina_Bool elm_win_conformant_get(Evas_Object *obj); + EAPI void elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel); + EAPI Eina_Bool elm_win_quickpanel_get(Evas_Object *obj); /*... * ecore_x_icccm_hints_set -> accepts_focus (add to ecore_evas) diff --git a/legacy/elementary/src/lib/elm_conform.c b/legacy/elementary/src/lib/elm_conform.c index 83ed9caf33..8b535819b1 100644 --- a/legacy/elementary/src/lib/elm_conform.c +++ b/legacy/elementary/src/lib/elm_conform.c @@ -39,6 +39,7 @@ _sizing_eval(Evas_Object *obj) { Widget_Data *wd = elm_widget_data_get(obj); Evas_Coord mw = -1, mh = -1; + edje_object_size_min_calc(wd->base, &mw, &mh); evas_object_size_hint_min_set(obj, mw, mh); evas_object_size_hint_max_set(obj, -1, -1); diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c index 1bafe3255c..0ff12c9854 100644 --- a/legacy/elementary/src/lib/elm_win.c +++ b/legacy/elementary/src/lib/elm_win.c @@ -867,6 +867,35 @@ elm_win_conformant_get(Evas_Object *obj) return EINA_FALSE; } +EAPI void +elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel) +{ + Elm_Win *win; + if (strcmp(elm_widget_type_get(obj), "win")) return; + win = elm_widget_data_get(obj); + if (!win) return; + _elm_win_xwindow_get(win); +#ifdef HAVE_ELEMENTARY_X + if (win->xwin) + ecore_x_e_illume_quickpanel_set(win->xwin, quickpanel); +#endif +} + +EAPI Eina_Bool +elm_win_quickpanel_get(Evas_Object *obj) +{ + Elm_Win *win; + if (strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE; + win = elm_widget_data_get(obj); + if (!win) return EINA_FALSE; + _elm_win_xwindow_get(win); +#ifdef HAVE_ELEMENTARY_X + if (win->xwin) + return ecore_x_e_illume_quickpanel_get(win->xwin); +#endif + return EINA_FALSE; +} + typedef struct _Widget_Data Widget_Data; struct _Widget_Data