1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2025-04-21 12:27:27 +03:00

- when selecting an object via the item list, make its frame active

- having variables and items on the screen at the same time was too much. We 
  can now toggle with "/" while the canvas has the focus. (This needs better 
  controls.)



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5425 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
werner
2009-08-12 14:44:17 +00:00
parent a648cb888f
commit 2bae5614d9
5 changed files with 45 additions and 19 deletions

4
inst.c
View File

@@ -303,6 +303,8 @@ void inst_select_vec(const struct vec *vec)
{
struct inst *inst;
if (vec->frame != active_frame)
select_frame(vec->frame);
for (inst = insts[ip_vec]; inst; inst = inst->next)
if (inst->vec == vec && inst->active) {
inst_deselect();
@@ -318,6 +320,8 @@ void inst_select_obj(const struct obj *obj)
enum inst_prio prio;
struct inst *inst;
if (obj->frame != active_frame)
select_frame(obj->frame);
FOR_INSTS_DOWN(prio, inst)
if (inst->obj && inst->obj == obj && inst->active) {
inst_deselect();