summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-08-30 10:38:43 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-08-30 10:38:43 +0000
commite719762455eb7aa1ef965d0884d96f7d69d4c7cf (patch)
tree1ddd46f197d07e3ef91e38d96db42f41c01fd643 /src/modules
parent7cd4c1bff114332336d057142205c168d62520ca (diff)
elm datetime module: Use diskselector 'clicked' smart callback in datetime module.
SVN revision: 75871
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/datetime_input_ctxpopup/datetime_input_ctxpopup.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/datetime_input_ctxpopup/datetime_input_ctxpopup.c b/src/modules/datetime_input_ctxpopup/datetime_input_ctxpopup.c
index 7c58d32b9..332bd3b92 100644
--- a/src/modules/datetime_input_ctxpopup/datetime_input_ctxpopup.c
+++ b/src/modules/datetime_input_ctxpopup/datetime_input_ctxpopup.c
@@ -83,13 +83,13 @@ _field_value_get(struct tm *tim, Elm_Datetime_Field_Type field_type)
83} 83}
84 84
85static void 85static void
86_diskselector_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 86_diskselector_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
87{ 87{
88 DiskItem_Data *disk_data; 88 DiskItem_Data *disk_data;
89 struct tm curr_time; 89 struct tm curr_time;
90 const char *fmt; 90 const char *fmt;
91 91
92 disk_data = (DiskItem_Data *)data; 92 disk_data = (DiskItem_Data *)elm_object_item_data_get(event_info);
93 if (!disk_data || !(disk_data->ctx_mod)) return; 93 if (!disk_data || !(disk_data->ctx_mod)) return;
94 94
95 elm_datetime_value_get(disk_data->ctx_mod->mod_data.base, &curr_time); 95 elm_datetime_value_get(disk_data->ctx_mod->mod_data.base, &curr_time);
@@ -176,7 +176,8 @@ _field_clicked_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__)
176 disk_data->ctx_mod = ctx_mod; 176 disk_data->ctx_mod = ctx_mod;
177 disk_data->sel_field_type = field_type; 177 disk_data->sel_field_type = field_type;
178 disk_data->sel_field_value = idx; 178 disk_data->sel_field_value = idx;
179 item = elm_diskselector_item_append(diskselector, label, NULL, _diskselector_cb, disk_data); 179 item = elm_diskselector_item_append(diskselector, label, NULL, NULL, disk_data);
180 evas_object_smart_callback_add(diskselector, "clicked", _diskselector_cb, NULL);
180 elm_object_item_del_cb_set(item, _diskselector_item_free_cb); 181 elm_object_item_del_cb_set(item, _diskselector_item_free_cb);
181 } 182 }
182 } 183 }