summaryrefslogtreecommitdiff
path: root/src/modules/datetime_input_ctxpopup
diff options
context:
space:
mode:
authorKim Shinwoo <kimcinoo.efl@gmail.com>2012-08-30 03:05:20 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-08-30 03:05:20 +0000
commit61a1cdb4af100bd06d44ecb44d1ab5de990d227c (patch)
tree3862bcd151d77e21ab8e601fd278dadd114468ea /src/modules/datetime_input_ctxpopup
parentca9120ad47c4153fba8301deab24e6a15f95b315 (diff)
elm diskselector: Revert diskselector patch derived by Shinwoo Kim's diskselector patch.
That needs to be done in other way. Revert "From: Kim Shinwoo <kimcinoo.efl@gmail.com>" This reverts commit 9d6e461366a0eb208d75b0a1fb5c0c822b761c71. SVN revision: 75836
Diffstat (limited to 'src/modules/datetime_input_ctxpopup')
-rw-r--r--src/modules/datetime_input_ctxpopup/datetime_input_ctxpopup.c6
1 files changed, 3 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 7a72bc744..7c58d32b9 100644
--- a/src/modules/datetime_input_ctxpopup/datetime_input_ctxpopup.c
+++ b/src/modules/datetime_input_ctxpopup/datetime_input_ctxpopup.c
@@ -185,9 +185,9 @@ _field_clicked_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__)
185 evas_object_geometry_get(obj, &x, &y, &w, &h); 185 evas_object_geometry_get(obj, &x, &y, &w, &h);
186 evas_object_geometry_get(elm_widget_top_get(ctx_mod->mod_data.base), NULL, NULL, &width, NULL); 186 evas_object_geometry_get(elm_widget_top_get(ctx_mod->mod_data.base), NULL, NULL, &width, NULL);
187 evas_object_size_hint_min_set(ctx_mod->ctxpopup, width, -1); 187 evas_object_size_hint_min_set(ctx_mod->ctxpopup, width, -1);
188 display_item_num = w + elm_config_finger_size_get(); 188 display_item_num = width / (w + elm_config_finger_size_get());
189 189 // always display even number of items to avoid autoselection
190 elm_diskselector_autoselect_set(diskselector, EINA_FALSE); 190 if (display_item_num % 2) display_item_num -= 1;
191 if (display_item_num < DISKSELECTOR_MIN_ITEMS) 191 if (display_item_num < DISKSELECTOR_MIN_ITEMS)
192 display_item_num = DISKSELECTOR_MIN_ITEMS; 192 display_item_num = DISKSELECTOR_MIN_ITEMS;
193 elm_diskselector_display_item_num_set(diskselector, display_item_num); 193 elm_diskselector_display_item_num_set(diskselector, display_item_num);