summaryrefslogtreecommitdiff
path: root/src/modules/datetime_input_ctxpopup
diff options
context:
space:
mode:
authorWooHyun Jung <woohyun0705@gmail.com>2012-11-16 02:17:24 +0000
committerWooHyun Jung <woohyun0705@gmail.com>2012-11-16 02:17:24 +0000
commitf0fa367e08bbc03cb4a6857d2e63e3f9c29f99c6 (patch)
treefc89680d7ddf8e94a82e1cc621c61241610c9f41 /src/modules/datetime_input_ctxpopup
parent5156539d191b4a95a26403b6148bd4f4ed28eedd (diff)
[elementary/datetime] Fixed module codes. The parent of ctxpopup should be a datetime.
And its location and size should be calculated with the top parent. SVN revision: 79355
Diffstat (limited to 'src/modules/datetime_input_ctxpopup')
-rw-r--r--src/modules/datetime_input_ctxpopup/datetime_input_ctxpopup.c4
1 files changed, 3 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 dec9b2e1b..5773b264f 100644
--- a/src/modules/datetime_input_ctxpopup/datetime_input_ctxpopup.c
+++ b/src/modules/datetime_input_ctxpopup/datetime_input_ctxpopup.c
@@ -136,6 +136,8 @@ _field_clicked_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__)
136 ctx_mod = (Ctxpopup_Module_Data *)data; 136 ctx_mod = (Ctxpopup_Module_Data *)data;
137 if (!ctx_mod || !ctx_mod->ctxpopup) return; 137 if (!ctx_mod || !ctx_mod->ctxpopup) return;
138 138
139 elm_ctxpopup_hover_parent_set(ctx_mod->ctxpopup, elm_widget_top_get(obj));
140
139 // because of the diskselector behaviour, it is being recreated 141 // because of the diskselector behaviour, it is being recreated
140 diskselector = elm_diskselector_add(elm_widget_top_get(ctx_mod->mod_data.base)); 142 diskselector = elm_diskselector_add(elm_widget_top_get(ctx_mod->mod_data.base));
141 snprintf(buf, sizeof(buf), "datetime/%s", elm_object_style_get(obj)); 143 snprintf(buf, sizeof(buf), "datetime/%s", elm_object_style_get(obj));
@@ -316,7 +318,7 @@ obj_hook(Evas_Object *obj)
316 ctx_mod = ELM_NEW(Ctxpopup_Module_Data); 318 ctx_mod = ELM_NEW(Ctxpopup_Module_Data);
317 if (!ctx_mod) return NULL; 319 if (!ctx_mod) return NULL;
318 320
319 ctx_mod->ctxpopup = elm_ctxpopup_add(elm_widget_top_get(obj)); 321 ctx_mod->ctxpopup = elm_ctxpopup_add(obj);
320 snprintf(buf, sizeof(buf), "datetime/%s", elm_object_style_get(obj)); 322 snprintf(buf, sizeof(buf), "datetime/%s", elm_object_style_get(obj));
321 elm_object_style_set(ctx_mod->ctxpopup, buf); 323 elm_object_style_set(ctx_mod->ctxpopup, buf);
322 elm_ctxpopup_horizontal_set(ctx_mod->ctxpopup, EINA_TRUE); 324 elm_ctxpopup_horizontal_set(ctx_mod->ctxpopup, EINA_TRUE);