From f40a46f56e9aa4ad273c9e0e6598444afbef4f2e Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Mon, 30 Dec 2013 19:36:16 +0900 Subject: [PATCH] test_fileselector: Set the hoversel's hover parent correctly. This fixes hover clipping issue on hoversel button clicked. Thanks for the report Ryuan. --- src/bin/test_fileselector.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bin/test_fileselector.c b/src/bin/test_fileselector.c index 7f74089..a410e92 100644 --- a/src/bin/test_fileselector.c +++ b/src/bin/test_fileselector.c @@ -361,7 +361,7 @@ _sort_selected_cb(void *data, Evas_Object *obj, void *event_info) } static Evas_Object * -_sort_option_create(Evas_Object *parent, Evas_Object *fs) +_sort_option_create(Evas_Object *win, Evas_Object *parent, Evas_Object *fs) { Evas_Object *frame = NULL, *hbox = NULL, *hoversel; @@ -376,7 +376,8 @@ _sort_option_create(Evas_Object *parent, Evas_Object *fs) elm_object_content_set(frame, hbox); evas_object_show(hbox); - hoversel = elm_hoversel_add(parent); + hoversel = elm_hoversel_add(hbox); + elm_hoversel_hover_parent_set(hoversel, win); evas_object_data_set(hoversel, "fileselector", fs); elm_object_text_set(hoversel, "Choose sort method"); @@ -574,7 +575,7 @@ test_fileselector(void *data EINA_UNUSED, elm_box_pack_end(vbox, _option_create(vbox, fs)); elm_box_pack_end(vbox, _getter_option_create(vbox, fs)); elm_box_pack_end(vbox, _mode_option_create(vbox, fs)); - elm_box_pack_end(vbox, _sort_option_create(vbox, fs)); + elm_box_pack_end(vbox, _sort_option_create(win, vbox, fs)); elm_box_pack_end(vbox, _thumbnail_size_option_create(vbox, fs)); evas_object_resize(win, 550, 500); -- 2.7.4