forked from enlightenment/efl
Add elm_win function(s) for get/set of quickpanel.
SVN revision: 45510
This commit is contained in:
parent
602a2db2d7
commit
23a8daed87
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue