Items: Hide clear item on last application close. 72/92472/2
authorKamil Lipiszko <k.lipiszko@samsung.com>
Mon, 17 Oct 2016 06:34:44 +0000 (08:34 +0200)
committerKamil Lipiszko <k.lipiszko@samsung.com>
Mon, 17 Oct 2016 06:46:35 +0000 (08:46 +0200)
This commit destroys clear item when item of the last
running application is hidden.

Change-Id: I5e65235f79dfa7af795bbd1132b17c1a7bb77c59

res/edje/item.edc
src/item.c

index c6943c6..7b85d2b 100644 (file)
@@ -198,13 +198,6 @@ collections {
                                        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";
@@ -223,11 +216,6 @@ collections {
                                        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";
@@ -239,11 +227,6 @@ collections {
                                        rel2.to: "clear_img";
                                        visible: 1;
                                }
-                               description {
-                                       state: "no,apps" 0.0;
-                                       inherit: "default" 0.0;
-                                       visible: 0;
-                               }
                        }
                } //parts
                programs {
@@ -253,15 +236,6 @@ collections {
                                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
index fd39773..5baec1e 100644 (file)
@@ -72,8 +72,7 @@ void item_clear_all_disabled_set(Evas_Object *scroller)
        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);
 }