forked from enlightenment/efl
elementary/conformant - allocate dummy parts objects in conformant only when their swallow parts are actually exists. these conformant parts are not necessary in most cases since they are closely depenent on the platform feature.
SVN revision: 82877
This commit is contained in:
parent
c4f6c36e87
commit
38ec9b466a
|
@ -915,3 +915,8 @@
|
|||
2013-01-16 Jaeun Choi
|
||||
|
||||
* Fix bug where index is not re-filled if autohide disabled
|
||||
|
||||
2013-01-16 ChunEon Park (Hermet)
|
||||
|
||||
* allocate conformant part dummy objects only when the swallow parts are existed actually. since these parts are really dependent on the platform, in most case they don't need all parts at the same time.
|
||||
|
||||
|
|
|
@ -52,6 +52,8 @@ Improvements:
|
|||
* Setting the same font size of the others widgets for the dayselector.
|
||||
* Added a separated spinner for year on calendar.
|
||||
* Don't link anymore with E_DBus at build time.
|
||||
* allocate conformant part dummy objects only when the swallow parts
|
||||
are existed actually. since these parts are really dependent on the platform, in most case they don't need all parts at the same time.
|
||||
|
||||
Fixes:
|
||||
|
||||
|
|
|
@ -211,17 +211,18 @@ static void
|
|||
_conformant_parts_swallow(Evas_Object *obj)
|
||||
{
|
||||
Evas *e;
|
||||
Elm_Widget_Smart_Data *wd;
|
||||
|
||||
ELM_CONFORMANT_DATA_GET(obj, sd);
|
||||
|
||||
wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
|
||||
e = evas_object_evas_get(obj);
|
||||
|
||||
sd->scroller = NULL;
|
||||
|
||||
//Indicator
|
||||
//Indicator swallow can occur Only indicator show or rotation change
|
||||
|
||||
//Virtual Keyboard
|
||||
if (edje_object_part_exists(wd->resize_obj, "elm.swallow.virtualkeypad"))
|
||||
{
|
||||
if (!sd->virtualkeypad)
|
||||
{
|
||||
sd->virtualkeypad = evas_object_rectangle_add(e);
|
||||
|
@ -232,9 +233,18 @@ _conformant_parts_swallow(Evas_Object *obj)
|
|||
_conformant_part_sizing_eval(obj, ELM_CONFORMANT_VIRTUAL_KEYPAD_PART);
|
||||
|
||||
evas_object_color_set(sd->virtualkeypad, 0, 0, 0, 0);
|
||||
elm_layout_content_set(obj, "elm.swallow.virtualkeypad", sd->virtualkeypad);
|
||||
elm_layout_content_set(obj, "elm.swallow.virtualkeypad",
|
||||
sd->virtualkeypad);
|
||||
}
|
||||
else if (sd->virtualkeypad)
|
||||
{
|
||||
evas_object_del(sd->virtualkeypad);
|
||||
sd->virtualkeypad = NULL;
|
||||
}
|
||||
|
||||
//Clipboard
|
||||
if (edje_object_part_exists(wd->resize_obj, "elm.swallow.clipboard"))
|
||||
{
|
||||
if (!sd->clipboard)
|
||||
{
|
||||
sd->clipboard = evas_object_rectangle_add(e);
|
||||
|
@ -246,8 +256,16 @@ _conformant_parts_swallow(Evas_Object *obj)
|
|||
|
||||
evas_object_color_set(sd->clipboard, 0, 0, 0, 0);
|
||||
elm_layout_content_set(obj, "elm.swallow.clipboard", sd->clipboard);
|
||||
}
|
||||
else if (sd->clipboard)
|
||||
{
|
||||
evas_object_del(sd->clipboard);
|
||||
sd->clipboard = NULL;
|
||||
}
|
||||
|
||||
//Softkey
|
||||
if (edje_object_part_exists(wd->resize_obj, "elm.swallow.softkey"))
|
||||
{
|
||||
if (!sd->softkey)
|
||||
{
|
||||
sd->softkey = evas_object_rectangle_add(e);
|
||||
|
@ -260,6 +278,12 @@ _conformant_parts_swallow(Evas_Object *obj)
|
|||
evas_object_color_set(sd->softkey, 0, 0, 0, 0);
|
||||
elm_layout_content_set(obj, "elm.swallow.softkey", sd->softkey);
|
||||
}
|
||||
else if (sd->softkey)
|
||||
{
|
||||
evas_object_del(sd->softkey);
|
||||
sd->softkey = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static Eina_Bool
|
||||
_port_indicator_connect_cb(void *data)
|
||||
|
@ -424,9 +448,16 @@ static void
|
|||
_indicator_mode_set(Evas_Object *conformant, Elm_Win_Indicator_Mode indmode)
|
||||
{
|
||||
Evas_Object *old_indi = NULL;
|
||||
Elm_Widget_Smart_Data *wd;
|
||||
|
||||
ELM_CONFORMANT_DATA_GET(conformant, sd);
|
||||
wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
|
||||
|
||||
sd->indmode = indmode;
|
||||
|
||||
if (!edje_object_part_exists(wd->resize_obj, "elm.swallow.indicator"))
|
||||
return;
|
||||
|
||||
if (indmode == ELM_WIN_INDICATOR_SHOW)
|
||||
{
|
||||
old_indi = elm_layout_content_get(conformant, "elm.swallow.indicator");
|
||||
|
|
Loading…
Reference in New Issue