Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/modules/ibar
Modified Files:
e_mod_main.c
Log Message:
modules back to normal
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/ibar/e_mod_main.c,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -3 -r1.86 -r1.87
--- e_mod_main.c 27 Oct 2005 02:44:36 -0000 1.86
+++ e_mod_main.c 3 Nov 2005 15:16:12 -0000 1.87
@@ -1479,7 +1479,12 @@
if ((e_gadman_client_edge_get(ibb->gmc) == E_GADMAN_EDGE_BOTTOM) ||
(e_gadman_client_edge_get(ibb->gmc) == E_GADMAN_EDGE_TOP))
{
- e_box_align_set(ibb->box_object, ibb->align, 0.5);
+ e_box_min_size_get(ibb->box_object, &mw, &mh);
+ evas_object_geometry_get(ibb->box_object, NULL, NULL, &w, &h);
+ if (mw > w)
+ e_box_align_set(ibb->box_object, ibb->align, 0.5);
+ else
+ e_box_align_set(ibb->box_object, 0.5, 0.5);
if (ibb->overlay_object)
{
@@ -1492,7 +1497,12 @@
else if ((e_gadman_client_edge_get(ibb->gmc) == E_GADMAN_EDGE_LEFT) ||
(e_gadman_client_edge_get(ibb->gmc) == E_GADMAN_EDGE_RIGHT))
{
- e_box_align_set(ibb->box_object, 0.5, ibb->align);
+ e_box_min_size_get(ibb->box_object, &mw, &mh);
+ evas_object_geometry_get(ibb->box_object, NULL, NULL, &w, &h);
+ if (mh > h)
+ e_box_align_set(ibb->box_object, 0.5, ibb->align);
+ else
+ e_box_align_set(ibb->box_object, 0.5, 0.5);
if (ibb->overlay_object)
{
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs