forked from enlightenment/enlightenment
ooooh... nup.. dotn allwoe resizes ayt all while shaded.. bad bad bad...
SVN revision: 4363
This commit is contained in:
parent
94220456db
commit
41cabbdf27
|
@ -575,6 +575,7 @@ e_act_resize_stop (void *o, E_Action *a, void *data, int x, int y, int rx, int
|
||||||
E_Border *b;
|
E_Border *b;
|
||||||
|
|
||||||
b = o;
|
b = o;
|
||||||
|
if (b->current.shaded != 0) return;
|
||||||
b->current.requested.x = b->current.x;
|
b->current.requested.x = b->current.x;
|
||||||
b->current.requested.y = b->current.y;
|
b->current.requested.y = b->current.y;
|
||||||
b->current.requested.w = b->current.w;
|
b->current.requested.w = b->current.w;
|
||||||
|
@ -666,6 +667,7 @@ e_act_resize_h_stop (void *o, E_Action *a, void *data, int x, int y, int rx, in
|
||||||
E_Border *b;
|
E_Border *b;
|
||||||
|
|
||||||
b = o;
|
b = o;
|
||||||
|
if (b->current.shaded != 0) return;
|
||||||
b->current.requested.x = b->current.x;
|
b->current.requested.x = b->current.x;
|
||||||
b->current.requested.y = b->current.y;
|
b->current.requested.y = b->current.y;
|
||||||
b->current.requested.w = b->current.w;
|
b->current.requested.w = b->current.w;
|
||||||
|
@ -745,6 +747,7 @@ e_act_resize_v_stop (void *o, E_Action *a, void *data, int x, int y, int rx, in
|
||||||
E_Border *b;
|
E_Border *b;
|
||||||
|
|
||||||
b = o;
|
b = o;
|
||||||
|
if (b->current.shaded != 0) return;
|
||||||
b->current.requested.x = b->current.x;
|
b->current.requested.x = b->current.x;
|
||||||
b->current.requested.y = b->current.y;
|
b->current.requested.y = b->current.y;
|
||||||
b->current.requested.w = b->current.w;
|
b->current.requested.w = b->current.w;
|
||||||
|
|
99
src/pack.c
99
src/pack.c
|
@ -37,6 +37,105 @@ e_pack_object_new(int type)
|
||||||
ZERO(po, E_Pack_Object, 1);
|
ZERO(po, E_Pack_Object, 1);
|
||||||
po->type = type;
|
po->type = type;
|
||||||
po->class = classes[type];
|
po->class = classes[type];
|
||||||
|
po->references = 0;
|
||||||
if (po->class.new) po->data.object = po->class.new();
|
if (po->class.new) po->data.object = po->class.new();
|
||||||
return po;
|
return po;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
e_pack_object_use(E_Pack_Object *po)
|
||||||
|
{
|
||||||
|
po->references++;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
e_pack_object_free(E_Pack_Object *po)
|
||||||
|
{
|
||||||
|
Evas_List l;
|
||||||
|
|
||||||
|
po->references--;
|
||||||
|
if (po->references > 0) return;
|
||||||
|
if (po->class.free) po->class.free(po->data.object);
|
||||||
|
if (po->children)
|
||||||
|
{
|
||||||
|
for (l = po->children; l; l = l->next)
|
||||||
|
{
|
||||||
|
E_Pack_Object *child_po;
|
||||||
|
|
||||||
|
child_po = l->data;
|
||||||
|
e_pack_object_free(child_po);
|
||||||
|
}
|
||||||
|
po->children = evas_list_free(po->children);
|
||||||
|
}
|
||||||
|
free(po);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
e_pack_object_set_evas(E_Pack_Object *po, Evas e)
|
||||||
|
{
|
||||||
|
if (e == po->data.evas) return;
|
||||||
|
po->data.evas = e;
|
||||||
|
if (po->class.evas) po->class.evas(po->data.object, e);
|
||||||
|
if (po->children)
|
||||||
|
{
|
||||||
|
Evas_List l;
|
||||||
|
|
||||||
|
for (l = po->children; l; l = l->next)
|
||||||
|
{
|
||||||
|
E_Pack_Object *child_po;
|
||||||
|
|
||||||
|
child_po = l->data;
|
||||||
|
e_pack_object_set_evas(child_po, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
e_pack_object_show(E_Pack_Object *po)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
e_pack_object_hide(E_Pack_Object *po)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
e_pack_object_raise(E_Pack_Object *po)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
e_pack_object_lower(E_Pack_Object *po)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
e_pack_object_set_layer(E_Pack_Object *po, int l)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
e_pack_object_clip(E_Pack_Object *po, Evas_Object clip)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
e_pack_object_unclip(E_Pack_Object *po)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
e_pack_object_move(E_Pack_Object *po, int x, int y)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
e_pack_object_resize(E_Pack_Object *po, int w, int h)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
e_pack_object_get_size(E_Pack_Object *po, int *w, int *h)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue