diff options
Diffstat (limited to 'src/extantz/files.c')
-rw-r--r-- | src/extantz/files.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/extantz/files.c b/src/extantz/files.c index 06cd257..816894f 100644 --- a/src/extantz/files.c +++ b/src/extantz/files.c | |||
@@ -155,19 +155,15 @@ fangWin *filesAdd(globals *ourGlobals, char *path, Eina_Bool multi, Eina_Bool sa | |||
155 | ); | 155 | ); |
156 | elm_win_resize_object_add(me->win, bx); | 156 | elm_win_resize_object_add(me->win, bx); |
157 | 157 | ||
158 | fs = eo_add(ELM_OBJ_FILESELECTOR_CLASS, bx); | 158 | wid = widgetAdd(me, ELM_OBJ_FILESELECTOR_CLASS, bx, NULL); |
159 | me->data = fs; | 159 | fs = wid->obj; |
160 | wid = widgetAdd(me); | ||
161 | wid->obj = fs; | ||
162 | wid->data = ourGlobals; | 160 | wid->data = ourGlobals; |
163 | wid->on_del = _on_fs_del; | 161 | wid->on_del = _on_fs_del; |
162 | me->data = fs; | ||
164 | eo_do(fs, | 163 | eo_do(fs, |
165 | evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND), | ||
166 | evas_obj_size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL), | ||
167 | elm_obj_fileselector_buttons_ok_cancel_set(EINA_FALSE), | 164 | elm_obj_fileselector_buttons_ok_cancel_set(EINA_FALSE), |
168 | elm_interface_fileselector_expandable_set(EINA_TRUE), | 165 | elm_interface_fileselector_expandable_set(EINA_TRUE), |
169 | elm_interface_fileselector_folder_only_set(EINA_FALSE), | 166 | elm_interface_fileselector_folder_only_set(EINA_FALSE) |
170 | evas_obj_visibility_set(EINA_TRUE) | ||
171 | ); | 167 | ); |
172 | elm_box_pack_end(bx, fs); | 168 | elm_box_pack_end(bx, fs); |
173 | 169 | ||