This commit destroys clear item when item of the last
running application is hidden.
Change-Id: I5e65235f79dfa7af795bbd1132b17c1a7bb77c59
align: 0.5 0.0;
fixed: 1 1;
}
- description {
- state: "no,apps" 0.0;
- inherit: "default" 0.0;
- image {
- normal: "clear_all_button_icon_disable.png";
- }
- }
}
part {
name: "name";
align: 0.0 0.5;
fixed: 1 0;
}
- description {
- state: "no,apps" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 124;
- }
}
part {
name: "event";
rel2.to: "clear_img";
visible: 1;
}
- description {
- state: "no,apps" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
}
} //parts
programs {
source: "event";
action: SIGNAL_EMIT "click" "clear_item";
}
- program {
- name: "no,app";
- signal: "no,apps";
- source: "clear";
- action: STATE_SET "no,apps" 0.0;
- target: "clear_img";
- target: "name";
- target: "event";
- }
}
} //group
} //collections
clear_item = evas_object_data_get(scroller, PRIVATE_DATA_KEY_CLEAR);
ret_if(!clear_item);
elm_layout_signal_emit(main_get_info()->layout, "no,apps,txt,show", "no,apps,txt");
- elm_layout_signal_emit(clear_item, "no,apps", "clear");
-
+ item_clear_all_destroy(scroller);
}