Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_gadcon_popup.c 


Log Message:
Center gadcon popups over their respective gadgets, not aligned to the left.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_gadcon_popup.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- e_gadcon_popup.c    13 Dec 2007 19:27:02 -0000      1.7
+++ e_gadcon_popup.c    8 Jan 2008 06:12:22 -0000       1.8
@@ -115,7 +115,7 @@
       case E_GADCON_ORIENT_CORNER_TL:
       case E_GADCON_ORIENT_CORNER_TR:
        py = gy + gh;
-       px = gx;
+       px = (gx + (gw / 2)) - (pop->w / 2);
        if (px + pop->w >= zw)
          px = gx + gw - pop->w;
        break;
@@ -123,7 +123,7 @@
       case E_GADCON_ORIENT_CORNER_BL:
       case E_GADCON_ORIENT_CORNER_BR:
        py = gy - pop->h;
-       px = gx;
+       px = (gx + (gw / 2)) - (pop->w / 2);
        if (px + pop->w >= zw)
          px = gx + gw - pop->w;
        break;



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to