summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDivyesh Purohit <purohit.div@gmail.com>2016-01-26 13:01:55 -0800
committerCedric BAIL <cedric@osg.samsung.com>2016-01-26 13:05:28 -0800
commit8ed7e997c3c64100abd24c982133520591bf5f04 (patch)
tree7d6a8b6c14ce857ef749186322365f2ccc5f2296
parentf4ee3f5f0e90046fe9c1b986ea0078a6e3967d84 (diff)
combobox: avoid calling item_selected and dismissed signal on show
Summary: After this patch https://phab.enlightenment.org/rELM0f6e1a46a402fd9cf848ffb1bd47c6b406eb7ffa calling item,selected and dismissed signals should be avoided on combobox show. Signed-off-by: Divyesh Purohit <purohit.div@gmail.com> Test Plan: please run combobox example from elementary_test Reviewers: cedric Differential Revision: https://phab.enlightenment.org/D3603 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/elc_combobox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elc_combobox.c b/src/lib/elc_combobox.c
index fbe0f1cd1..9ad0dbe37 100644
--- a/src/lib/elc_combobox.c
+++ b/src/lib/elc_combobox.c
@@ -149,7 +149,6 @@ _table_resize(void *data)
149 int current_height, h; 149 int current_height, h;
150 const char *best_location; 150 const char *best_location;
151 sd->item = elm_genlist_first_item_get(sd->genlist); 151 sd->item = elm_genlist_first_item_get(sd->genlist);
152 elm_genlist_item_selected_set(sd->item, EINA_TRUE);
153 //FIXME:- the height of item is zero, sometimes. 152 //FIXME:- the height of item is zero, sometimes.
154 evas_object_geometry_get(elm_object_item_track(sd->item), NULL, NULL, 153 evas_object_geometry_get(elm_object_item_track(sd->item), NULL, NULL,
155 NULL, &h); 154 NULL, &h);
@@ -188,6 +187,7 @@ _activate(Evas_Object *obj)
188 elm_object_part_content_set(sd->hover, elm_hover_best_content_location_get 187 elm_object_part_content_set(sd->hover, elm_hover_best_content_location_get
189 (sd->hover, ELM_HOVER_AXIS_VERTICAL), sd->tbl); 188 (sd->hover, ELM_HOVER_AXIS_VERTICAL), sd->tbl);
190 evas_object_show(sd->genlist); 189 evas_object_show(sd->genlist);
190 elm_genlist_item_selected_set(sd->item, EINA_TRUE);
191 evas_object_show(sd->hover); 191 evas_object_show(sd->hover);
192 eo_do(obj, eo_event_callback_call(ELM_COMBOBOX_EVENT_EXPANDED, NULL)); 192 eo_do(obj, eo_event_callback_call(ELM_COMBOBOX_EVENT_EXPANDED, NULL));
193} 193}
@@ -217,7 +217,6 @@ _gl_filter_finished_cb(void *data, Eo *obj EINA_UNUSED,
217 if (sd->first_filter) 217 if (sd->first_filter)
218 { 218 {
219 sd->first_filter = EINA_FALSE; 219 sd->first_filter = EINA_FALSE;
220 elm_combobox_hover_end(data);
221 return EINA_TRUE; 220 return EINA_TRUE;
222 } 221 }
223 222
@@ -229,6 +228,7 @@ _gl_filter_finished_cb(void *data, Eo *obj EINA_UNUSED,
229 else _table_resize(data); 228 else _table_resize(data);
230 } 229 }
231 else elm_combobox_hover_end(data); 230 else elm_combobox_hover_end(data);
231 elm_genlist_item_selected_set(sd->item, EINA_TRUE);
232 return EINA_TRUE; 232 return EINA_TRUE;
233} 233}
234 234