mirror of
git://projects.qi-hardware.com/fped.git
synced 2025-04-21 12:27:27 +03:00
- revamped delete logic: delete now always works. If there are references, we
remove them as well. (In progress.) - added frame deletion - gui_status.c:add_label added vertical padding to keep the input area from bouncing (by Alvaro Lopes) git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5390 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
8
inst.c
8
inst.c
@@ -870,10 +870,12 @@ void inst_hover(struct inst *inst, struct draw_ctx *ctx, int on)
|
||||
}
|
||||
|
||||
|
||||
int inst_delete(struct inst *inst)
|
||||
void inst_delete(struct inst *inst)
|
||||
{
|
||||
return inst->ops == &vec_ops ?
|
||||
delete_vec(inst->vec) : delete_obj(inst->obj);
|
||||
if (inst->ops == &vec_ops)
|
||||
delete_vec(inst->vec);
|
||||
else
|
||||
delete_obj(inst->obj);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user