#include "gallery-efl.h"
#define GE_ICON_CONTENTS_BROKEN GE_IMAGES_DIR"Contents_broken_351X261.png"
-#define GE_ICON_MEMORY_CARD PREFIX"/res/images/attach-panel-gallery/images/T01_album_icon_sd_card.png"
+#define GE_ICON_MEMORY_CARD PREFIX"/res/images/"PACKAGE"/images/T01_album_icon_sd_card.png"
#endif //__GE_ICON_H__
data.item: "contents" "content_swallow checkbox_swallow sd_card_icon";
images {
image: No_thumbnail_351X261.png COMP;
+ image: gallery_icon_sd_card.png COMP;
}
parts {
part {
rel2 { relative: (180 - 9)/180 59/180; to: "content_swallow";}
}
}
+ part {
+ name: "sd_card_icon_img_bg";
+ type: IMAGE;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ rel1 { relative: (180 - 49)/180 (180 -49)/180; to: "content_swallow";}
+ rel2 { relative: (180 - 9)/180 (180 - 9)/180; to: "content_swallow";}
+ image.normal: gallery_icon_sd_card.png;
+ }
+ description {
+ state: "show" 0.0;
+ visible: 1;
+ rel1 { relative: (180 - 49)/180 (180 -49)/180; to: "content_swallow";}
+ rel2 { relative: (180 - 9)/180 (180 - 9)/180; to: "content_swallow";}
+ image.normal: gallery_icon_sd_card.png;
+ }
+ }
part {
name: "sd_card_icon";
type: SWALLOW;
action: STATE_SET "default" 0.0;
target: "default_image";
}
+ program {
+ name: "show_sd_icon";
+ signal: "show_sd_card_icon";
+ source: "sd_card_icon_img";
+ action: STATE_SET "show" 0.0;
+ target: "sd_card_icon_img_bg";
+ }
+ program {
+ name: "hide_sd_icon";
+ signal: "hide_sd_card_icon";
+ source: "sd_card_icon_img";
+ action: STATE_SET "default" 0.0;
+ target: "sd_card_icon_img_bg";
+ }
}
}
evas_object_size_hint_aspect_set(icon,
EVAS_ASPECT_CONTROL_VERTICAL,
1, 1);
+ elm_object_item_signal_emit(gitem->elm_item,
+ "show_sd_card_icon",
+ "sd_card_icon_img");
return icon;
+ } else {
+ elm_object_item_signal_emit(gitem->elm_item,
+ "hide_sd_card_icon",
+ "sd_card_icon_img");
}
}