summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyuan Choi <ryuan.choi@gmail.com>2014-02-06 01:45:31 +0900
committerRyuan Choi <ryuan.choi@gmail.com>2014-02-06 01:45:31 +0900
commit7a2fa5fc2cbf91b88be27233de69c49b8fe8ff47 (patch)
tree35e8c14edd2d507ac10ea71739f8222daaae46d2
parent3fb3eaf6942512937177188b1ab6462f1b493a39 (diff)
elm datetime module: Fix that registers clicked callback of diskselector multiple
It drains the performance when selected value in diskselector.
-rw-r--r--src/modules/datetime_input_ctxpopup/datetime_input_ctxpopup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/datetime_input_ctxpopup/datetime_input_ctxpopup.c b/src/modules/datetime_input_ctxpopup/datetime_input_ctxpopup.c
index 3a34440dd..81cf9472a 100644
--- a/src/modules/datetime_input_ctxpopup/datetime_input_ctxpopup.c
+++ b/src/modules/datetime_input_ctxpopup/datetime_input_ctxpopup.c
@@ -155,6 +155,7 @@ _field_clicked_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
155 155
156 // because of the diskselector behaviour, it is being recreated 156 // because of the diskselector behaviour, it is being recreated
157 diskselector = elm_diskselector_add(elm_widget_top_get(ctx_mod->mod_data.base)); 157 diskselector = elm_diskselector_add(elm_widget_top_get(ctx_mod->mod_data.base));
158 evas_object_smart_callback_add(diskselector, "clicked", _diskselector_cb, NULL);
158 elm_object_style_set(diskselector, buf); 159 elm_object_style_set(diskselector, buf);
159 elm_object_content_set(ctx_mod->ctxpopup, diskselector); 160 elm_object_content_set(ctx_mod->ctxpopup, diskselector);
160 161
@@ -193,7 +194,6 @@ _field_clicked_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
193 disk_data->sel_field_type = field_type; 194 disk_data->sel_field_type = field_type;
194 disk_data->sel_field_value = idx; 195 disk_data->sel_field_value = idx;
195 item = elm_diskselector_item_append(diskselector, label, NULL, NULL, disk_data); 196 item = elm_diskselector_item_append(diskselector, label, NULL, NULL, disk_data);
196 evas_object_smart_callback_add(diskselector, "clicked", _diskselector_cb, NULL);
197 elm_object_item_del_cb_set(item, _diskselector_item_free_cb); 197 elm_object_item_del_cb_set(item, _diskselector_item_free_cb);
198 } 198 }
199 } 199 }