aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/libraries/winFang.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libraries/winFang.c')
-rw-r--r--src/libraries/winFang.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/libraries/winFang.c b/src/libraries/winFang.c
index bcf99ce..5f5b575 100644
--- a/src/libraries/winFang.c
+++ b/src/libraries/winFang.c
@@ -262,6 +262,14 @@ winFang *winFangAdd(winFang *parent, int x, int y, int w, int h, char *title, ch
262 ); 262 );
263 elm_box_pack_end(result->box, obj1); 263 elm_box_pack_end(result->box, obj1);
264 eo_unref(obj1); 264 eo_unref(obj1);
265
266 result->content = eo_add(EVAS_OBJ_RECTANGLE_CLASS, result->win,
267 evas_obj_size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL),
268 evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
269 evas_obj_color_set(0, 0, 0, 0),
270 evas_obj_visibility_set(EINA_TRUE)
271 );
272 elm_box_pack_end(result->box, result->content);
265 } 273 }
266 274
267 evas_object_resize(result->win, result->w, result->h); 275 evas_object_resize(result->win, result->w, result->h);
@@ -277,6 +285,7 @@ void winFangDel(winFang *win)
277 285
278 if (!win) return; 286 if (!win) return;
279 287
288 eo_unref(win->content);
280 eo_unref(win->box); 289 eo_unref(win->box);
281 eo_unref(win->bg); 290 eo_unref(win->bg);
282 EINA_CLIST_FOR_EACH_ENTRY(wf, &win->winFangs, winFang, node) 291 EINA_CLIST_FOR_EACH_ENTRY(wf, &win->winFangs, winFang, node)
@@ -294,6 +303,15 @@ void winFangDel(winFang *win)
294 evas_object_del(win->win); 303 evas_object_del(win->win);
295} 304}
296 305
306void useBox(winFang *win)
307{
308 eo_do(win->content,
309 evas_obj_visibility_set(EINA_FALSE),
310 evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, 0.0),
311 evas_obj_size_set(0, 0)
312 );
313}
314
297Widget *widgetAdd(winFang *win, const Eo_Class *klass, Evas_Object *parent, char *title) 315Widget *widgetAdd(winFang *win, const Eo_Class *klass, Evas_Object *parent, char *title)
298{ 316{
299 Widget *result; 317 Widget *result;