Dear All, Hello!
The window of test_ctxpopup was not able to get its size.
I have added elm_box for this as others. Thanks.
Sincerely,
Shinwoo Kim.
Index: src/bin/test_ctxpopup.c
===================================================================
--- src/bin/test_ctxpopup.c (revision 62587)
+++ src/bin/test_ctxpopup.c (working copy)
@@ -155,7 +155,7 @@ static void _list_clicked(void *data __UNUSED__, E
void
test_ctxpopup(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- Evas_Object *win, *bg, *list;
+ Evas_Object *win, *bg, *list, *bx;
win = elm_win_add(NULL, "Contextual Popup", ELM_WIN_BASIC);
elm_win_title_set(win, "Contextual Popup");
@@ -166,9 +166,15 @@ test_ctxpopup(void *data __UNUSED__, Evas_Object *
elm_win_resize_object_add(win, bg);
evas_object_show(bg);
+ bx = elm_box_add(win);
+ evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ elm_win_resize_object_add(win, bx);
+ evas_object_show(bx);
+
list = elm_list_add(win);
- elm_win_resize_object_add(win, list);
+ elm_box_pack_end(bx, list);
evas_object_size_hint_weight_set(list, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_fill_set(list, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_list_mode_set(list, ELM_LIST_COMPRESS);
evas_object_smart_callback_add(list, "selected", _list_clicked, NULL);
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel