Enlightenment CVS committal

Author  : handyande
Project : misc
Module  : engage

Dir     : misc/engage/src/module


Modified Files:
        tray.c 


Log Message:
Fixup tray layout
===================================================================
RCS file: /cvsroot/enlightenment/misc/engage/src/module/tray.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- tray.c      13 Jun 2005 23:13:27 -0000      1.6
+++ tray.c      16 Jun 2005 09:39:27 -0000      1.7
@@ -83,6 +83,8 @@
 static void
 _engage_tray_add(Engage_Bar *eb, Ecore_X_Window win) {
 
+  if (evas_list_find(eb->tray->wins, (void *)win))
+    return;
   /* we want to insert at the end, so as not to move all icons on each add */
   eb->tray->wins = evas_list_append(eb->tray->wins, (void *)win);
   eb->tray->icons++;
@@ -188,7 +190,7 @@
                          );
    
    x = 0;
-   y = eb->h - 24;
+   y = h - 24;
    d = 0;
    for (wins = eb->tray->wins; wins; wins = wins->next)
      {
@@ -198,7 +200,7 @@
        if (d % c == 0)
          {
             x += 24;
-            y = eb->h - 24;
+            y = h - 24;
          }
        else
          y -= 24;




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to