diff options
Diffstat (limited to 'src/extantz/files.c')
-rw-r--r-- | src/extantz/files.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/extantz/files.c b/src/extantz/files.c index 7cfc5c0..84bf37b 100644 --- a/src/extantz/files.c +++ b/src/extantz/files.c | |||
@@ -153,19 +153,20 @@ static Eina_Bool _edje_filter(const char *path, Eina_Bool dir, void *data EINA_U | |||
153 | return EINA_FALSE; | 153 | return EINA_FALSE; |
154 | } | 154 | } |
155 | 155 | ||
156 | void files_add(globals *ourGlobals) | 156 | fangWin *files_add(globals *ourGlobals) |
157 | { | 157 | { |
158 | Evas_Object *win, *bx, *vbox, *fs, *bt, *rd = NULL, *rdg = NULL, *hoversel; | 158 | fangWin *me; |
159 | Evas_Object *bx, *vbox, *fs, *bt, *rd = NULL, *rdg = NULL, *hoversel; | ||
159 | 160 | ||
160 | win = fang_win_add(ourGlobals); | 161 | me = fang_win_add(ourGlobals); |
161 | 162 | ||
162 | bx = eo_add(ELM_OBJ_BOX_CLASS, win); | 163 | bx = eo_add(ELM_OBJ_BOX_CLASS, me->win); |
163 | eo_do(bx, | 164 | eo_do(bx, |
164 | elm_obj_box_homogeneous_set(EINA_FALSE), | 165 | elm_obj_box_homogeneous_set(EINA_FALSE), |
165 | evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND), | 166 | 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 | evas_obj_size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL) |
167 | ); | 168 | ); |
168 | elm_win_resize_object_add(win, bx); | 169 | elm_win_resize_object_add(me->win, bx); |
169 | 170 | ||
170 | fs = eo_add(ELM_OBJ_FILESELECTOR_CLASS, bx); | 171 | fs = eo_add(ELM_OBJ_FILESELECTOR_CLASS, bx); |
171 | eo_do(fs, | 172 | eo_do(fs, |
@@ -198,7 +199,7 @@ void files_add(globals *ourGlobals) | |||
198 | 199 | ||
199 | eo_unref(fs); | 200 | eo_unref(fs); |
200 | 201 | ||
201 | vbox = eo_add(ELM_OBJ_BOX_CLASS, win); | 202 | vbox = eo_add(ELM_OBJ_BOX_CLASS, me->win); |
202 | eo_do(vbox, | 203 | eo_do(vbox, |
203 | elm_obj_box_homogeneous_set(EINA_FALSE), | 204 | elm_obj_box_homogeneous_set(EINA_FALSE), |
204 | elm_obj_box_horizontal_set(EINA_TRUE), | 205 | elm_obj_box_horizontal_set(EINA_TRUE), |
@@ -236,7 +237,7 @@ void files_add(globals *ourGlobals) | |||
236 | 237 | ||
237 | 238 | ||
238 | hoversel = elm_hoversel_add(vbox); | 239 | hoversel = elm_hoversel_add(vbox); |
239 | elm_hoversel_hover_parent_set(hoversel, win); | 240 | elm_hoversel_hover_parent_set(hoversel, me->win); |
240 | evas_object_data_set(hoversel, "fileselector", fs); | 241 | evas_object_data_set(hoversel, "fileselector", fs); |
241 | elm_object_text_set(hoversel, "sorting"); | 242 | elm_object_text_set(hoversel, "sorting"); |
242 | 243 | ||
@@ -253,7 +254,7 @@ void files_add(globals *ourGlobals) | |||
253 | evas_object_show(hoversel); | 254 | evas_object_show(hoversel); |
254 | 255 | ||
255 | hoversel = elm_hoversel_add(vbox); | 256 | hoversel = elm_hoversel_add(vbox); |
256 | elm_hoversel_hover_parent_set(hoversel, win); | 257 | elm_hoversel_hover_parent_set(hoversel, me->win); |
257 | evas_object_data_set(hoversel, "fileselector", fs); | 258 | evas_object_data_set(hoversel, "fileselector", fs); |
258 | elm_object_text_set(hoversel, "size"); | 259 | elm_object_text_set(hoversel, "size"); |
259 | 260 | ||
@@ -270,5 +271,6 @@ void files_add(globals *ourGlobals) | |||
270 | evas_object_show(bx); | 271 | evas_object_show(bx); |
271 | eo_unref(bx); | 272 | eo_unref(bx); |
272 | 273 | ||
273 | fang_win_complete(ourGlobals, win, ourGlobals->win_w - 380, ourGlobals->win_w - 530, 350, 500); | 274 | fang_win_complete(ourGlobals, me, ourGlobals->win_w - 380, ourGlobals->win_w - 530, 350, 500); |
275 | return me; | ||
274 | } | 276 | } |