summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2012-01-20 10:55:45 +0000
committerChunEon Park <hermet@hermet.pe.kr>2012-01-20 10:55:45 +0000
commitf6460a46d30c5210b2fb282d75d1920bb81bc7d7 (patch)
tree5b43355f435e65fd0bd6cde07b4c9dd761b99fe4
parent5f0e2f121a60894e398c681f47aa6c20974be1b7 (diff)
PROTO/enna-explorer, eyelight_edit, ev - Elm_Genlist_Item -> Elm_Object_Item
SVN revision: 67387
-rw-r--r--ev.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/ev.c b/ev.c
index 0639d58..9f168d3 100644
--- a/ev.c
+++ b/ev.c
@@ -112,14 +112,14 @@ _resize(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *einfo
112} 112}
113 113
114static void 114static void
115_pick(void *data __UNUSED__, Evas_Object *obj __UNUSED__, Elm_Genlist_Item *ev) 115_pick(void *data __UNUSED__, Evas_Object *obj __UNUSED__, Elm_Object_Item *glit)
116{ 116{
117 const char *file, *f, *p; 117 const char *file, *f, *p;
118 Evas_Object *win; 118 Evas_Object *win;
119 119
120 DBG("pick"); 120 DBG("pick");
121 elm_icon_file_get(img, &f, &p); 121 elm_icon_file_get(img, &f, &p);
122 file = elm_genlist_item_data_get(ev); 122 file = elm_genlist_item_data_get(glit);
123 if (f && (!strcmp(file, f))) return; 123 if (f && (!strcmp(file, f))) return;
124 124
125 if (!evas_object_image_extension_can_load_get(file)) 125 if (!evas_object_image_extension_can_load_get(file))
@@ -136,26 +136,26 @@ _pick(void *data __UNUSED__, Evas_Object *obj __UNUSED__, Elm_Genlist_Item *ev)
136static void 136static void
137_key(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, Evas_Event_Key_Down *key) 137_key(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, Evas_Event_Key_Down *key)
138{ 138{
139 Elm_Genlist_Item *it; 139 Elm_Object_Item *glit;
140 DBG("%p: %s", obj, key->keyname); 140 DBG("%p: %s", obj, key->keyname);
141 if (!strcmp(key->keyname, "space")) 141 if (!strcmp(key->keyname, "space"))
142 { 142 {
143 it = elm_genlist_selected_item_get(list); 143 glit = elm_genlist_selected_item_get(list);
144 DBG("current: %p", it); 144 DBG("current: %p", glit);
145 it = elm_genlist_item_next_get(it); 145 glit = elm_genlist_item_next_get(glit);
146 if (!it) it = elm_genlist_first_item_get(list); 146 if (!glit) glit = elm_genlist_first_item_get(list);
147 DBG("next: %p", it); 147 DBG("next: %p", glit);
148 elm_genlist_item_selected_set(it, EINA_TRUE); 148 elm_genlist_item_selected_set(glit, EINA_TRUE);
149 elm_genlist_item_bring_in(it); 149 elm_genlist_item_bring_in(glit);
150 _pick(NULL, NULL, it); 150 _pick(NULL, NULL, glit);
151 } 151 }
152 else if ((!strcmp(key->keyname, "Return")) || (!strcmp(key->keyname, "KP_Enter"))) 152 else if ((!strcmp(key->keyname, "Return")) || (!strcmp(key->keyname, "KP_Enter")))
153 { 153 {
154 if (obj == elm_object_parent_widget_get(img)) return; 154 if (obj == elm_object_parent_widget_get(img)) return;
155 it = elm_genlist_selected_item_get(list); 155 glit = elm_genlist_selected_item_get(list);
156 if (!it) return; 156 if (!glit) return;
157 elm_genlist_item_bring_in(it); 157 elm_genlist_item_bring_in(glit);
158 _pick(NULL, NULL, it); 158 _pick(NULL, NULL, glit);
159 } 159 }
160 else if (key->keyname[0] == 'q') 160 else if (key->keyname[0] == 'q')
161 ecore_main_loop_quit(); 161 ecore_main_loop_quit();