diff options
author | David Walter Seikel | 2014-05-06 23:24:58 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-06 23:24:58 +1000 |
commit | 12fcc3075e3eb035e3d7fefb30c1d087a312bc48 (patch) | |
tree | c9ecae7adcac2bd24aba3467f04bc6726ac10492 /src/extantz/files.c | |
parent | WinFangs use an Elm image instead of a rectangle for their background, and ot... (diff) | |
download | SledjHamr-12fcc3075e3eb035e3d7fefb30c1d087a312bc48.zip SledjHamr-12fcc3075e3eb035e3d7fefb30c1d087a312bc48.tar.gz SledjHamr-12fcc3075e3eb035e3d7fefb30c1d087a312bc48.tar.bz2 SledjHamr-12fcc3075e3eb035e3d7fefb30c1d087a312bc48.tar.xz |
All winFangs now get a complimentary box.
Diffstat (limited to 'src/extantz/files.c')
-rw-r--r-- | src/extantz/files.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/extantz/files.c b/src/extantz/files.c index 948c261..7dd08fa 100644 --- a/src/extantz/files.c +++ b/src/extantz/files.c | |||
@@ -144,18 +144,11 @@ winFang *filesAdd(globals *ourGlobals, char *path, Eina_Bool multi, Eina_Bool sa | |||
144 | { | 144 | { |
145 | winFang *me; | 145 | winFang *me; |
146 | Widget *wid; | 146 | Widget *wid; |
147 | Evas_Object *bx, *vbox, *fs, *bt, *rd = NULL, *rdg = NULL, *hoversel; | 147 | Evas_Object *vbox, *fs, *bt, *rd = NULL, *rdg = NULL, *hoversel; |
148 | 148 | ||
149 | me = winFangAdd(ourGlobals->mainWindow, ourGlobals->win_w - 380, ourGlobals->win_w - 530, 350, 500, "file selector", "files"); | 149 | me = winFangAdd(ourGlobals->mainWindow, ourGlobals->win_w - 380, ourGlobals->win_w - 530, 350, 500, "file selector", "files"); |
150 | 150 | ||
151 | bx = eo_add(ELM_OBJ_BOX_CLASS, me->win, | 151 | wid = widgetAdd(me, ELM_OBJ_FILESELECTOR_CLASS, me->box, NULL); |
152 | elm_obj_box_homogeneous_set(EINA_FALSE), | ||
153 | evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND), | ||
154 | evas_obj_size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL) | ||
155 | ); | ||
156 | elm_win_resize_object_add(me->win, bx); | ||
157 | |||
158 | wid = widgetAdd(me, ELM_OBJ_FILESELECTOR_CLASS, bx, NULL); | ||
159 | fs = wid->obj; | 152 | fs = wid->obj; |
160 | wid->data = ourGlobals; | 153 | wid->data = ourGlobals; |
161 | wid->on_del = _on_fs_del; | 154 | wid->on_del = _on_fs_del; |
@@ -165,7 +158,7 @@ winFang *filesAdd(globals *ourGlobals, char *path, Eina_Bool multi, Eina_Bool sa | |||
165 | elm_interface_fileselector_expandable_set(EINA_TRUE), | 158 | elm_interface_fileselector_expandable_set(EINA_TRUE), |
166 | elm_interface_fileselector_folder_only_set(EINA_FALSE) | 159 | elm_interface_fileselector_folder_only_set(EINA_FALSE) |
167 | ); | 160 | ); |
168 | elm_box_pack_end(bx, fs); | 161 | elm_box_pack_end(me->box, fs); |
169 | 162 | ||
170 | elm_fileselector_path_set(fs, path); | 163 | elm_fileselector_path_set(fs, path); |
171 | elm_fileselector_is_save_set(fs, save); | 164 | elm_fileselector_is_save_set(fs, save); |
@@ -271,11 +264,10 @@ winFang *filesAdd(globals *ourGlobals, char *path, Eina_Bool multi, Eina_Bool sa | |||
271 | elm_box_pack_end(vbox, bt); | 264 | elm_box_pack_end(vbox, bt); |
272 | eo_unref(bt); | 265 | eo_unref(bt); |
273 | 266 | ||
274 | elm_box_pack_end(bx, vbox); | 267 | elm_box_pack_end(me->box, vbox); |
275 | evas_object_show(vbox); | 268 | evas_object_show(vbox); |
276 | evas_object_show(bx); | 269 | evas_object_show(me->box); |
277 | eo_unref(vbox); | 270 | eo_unref(vbox); |
278 | eo_unref(bx); | ||
279 | 271 | ||
280 | winFangHide(me); | 272 | winFangHide(me); |
281 | return me; | 273 | return me; |