Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        buttons.c dock.c 


Log Message:
Enable dock applets of size other than 64x64 (patch from Jonas Aaberg <[EMAIL 
PROTECTED]>).
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/buttons.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -3 -r1.31 -r1.32
--- buttons.c   21 Mar 2004 01:39:39 -0000      1.31
+++ buttons.c   24 Apr 2004 08:08:07 -0000      1.32
@@ -513,13 +513,13 @@
                  if (!done)
                    {
                       if (dirtomove == ICON_RIGHT)
-                         bt->x += bt->w;
+                         bt->x = blst[j]->w + blst[j]->x;
                       else if (dirtomove == ICON_LEFT)
-                         bt->x -= bt->w;
+                         bt->x = blst[j]->x - bt->w;
                       else if (dirtomove == ICON_DOWN)
-                         bt->y += bt->h;
+                         bt->y = blst[j]->h + blst[j]->y;
                       else if (dirtomove == ICON_UP)
-                         bt->y -= bt->h;
+                         bt->y = blst[j]->y - bt->h;
                    }
               }
          }
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/dock.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- dock.c      4 Apr 2004 21:34:16 -0000       1.16
+++ dock.c      24 Apr 2004 08:08:07 -0000      1.17
@@ -36,14 +36,16 @@
    ic = FindItem("DEFAULT_DOCK_BUTTON", 0, LIST_FINDBY_NAME, LIST_TYPE_ICLASS);
    if (Conf.dock.startx >= 0)
      {
-       bt = ButtonCreate(id, ic, ac, NULL, NULL, 1, 0, 64, 64, 64, 64, 0, 0,
-                         Conf.dock.startx, 0, Conf.dock.starty, 0, 0, 0, 0, 0,
-                         1, 0, 1);
+       bt = ButtonCreate(id, ic, ac, NULL, NULL, 1, 0,
+                         ewin->w, ewin->w, ewin->h, ewin->h,
+                         0, 0, Conf.dock.startx, 0, Conf.dock.starty, 0,
+                         0, 0, 0, 0, 1, 0, 1);
      }
    else
      {
-       bt = ButtonCreate(id, ic, ac, NULL, NULL, 1, 0, 64, 64, 64, 64, 0, 2046,
-                         0, 0, 0, 1023, 0, 0, 0, 0, 1, 0, 1);
+       bt = ButtonCreate(id, ic, ac, NULL, NULL, 1, 0,
+                         ewin->w, ewin->w, ewin->h, ewin->h,
+                         0, 2046, 0, 0, 0, 1023, 0, 0, 0, 0, 1, 0, 1);
      }
    UngrabX();
 




-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to