formatting

SVN revision: 72875
This commit is contained in:
Mike Blumenkrantz 2012-06-26 11:35:45 +00:00
parent 1e5628a2a3
commit 2aba767650
1 changed files with 50 additions and 44 deletions

View File

@ -184,6 +184,7 @@ _e_gadcon_popup_position(E_Gadcon_Popup *pop)
if (py + pop->h >= (zy + zh))
py = gy + gh - pop->h;
break;
case E_GADCON_ORIENT_LEFT:
case E_GADCON_ORIENT_CORNER_LT:
case E_GADCON_ORIENT_CORNER_LB:
@ -192,6 +193,7 @@ _e_gadcon_popup_position(E_Gadcon_Popup *pop)
if (py + pop->h >= (zy + zh))
py = gy + gh - pop->h;
break;
case E_GADCON_ORIENT_TOP:
case E_GADCON_ORIENT_CORNER_TL:
case E_GADCON_ORIENT_CORNER_TR:
@ -202,6 +204,7 @@ _e_gadcon_popup_position(E_Gadcon_Popup *pop)
else if (px < zx)
px = zx;
break;
case E_GADCON_ORIENT_BOTTOM:
case E_GADCON_ORIENT_CORNER_BL:
case E_GADCON_ORIENT_CORNER_BR:
@ -212,6 +215,7 @@ _e_gadcon_popup_position(E_Gadcon_Popup *pop)
else if (px < zx)
px = zx;
break;
case E_GADCON_ORIENT_FLOAT:
px = (gx + (gw / 2)) - (pop->w / 2);
if (gy >= (zy + (zh / 2)))
@ -223,6 +227,7 @@ _e_gadcon_popup_position(E_Gadcon_Popup *pop)
else if (px < zx)
px = zx;
break;
default:
e_popup_move_resize(pop->win, 50, 50, pop->w, pop->h);
return;
@ -245,3 +250,4 @@ _e_gadcon_popup_changed_size_hints_cb(void *data, Evas *e __UNUSED__, Evas_Objec
pop = data;
_e_gadcon_popup_size_recalc(pop, obj);
}