Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
      Tag: branch-exp
        buttons.c 


Log Message:
Fix initial button stacking + debug.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/buttons.c,v
retrieving revision 1.36.2.11
retrieving revision 1.36.2.12
diff -u -3 -r1.36.2.11 -r1.36.2.12
--- buttons.c   17 Oct 2004 13:48:14 -0000      1.36.2.11
+++ buttons.c   20 Oct 2004 20:56:00 -0000      1.36.2.12
@@ -101,7 +101,7 @@
    EoSetLayer(b, ontop);
    b->flags = flags;
    EoSetSticky(b, sticky);
-   EoSetDesk(b, desk);
+   b->o.desk = desk;
    b->visible = 0;
    b->geom.width.min = minw;
    b->geom.width.max = maxw;
@@ -995,6 +995,7 @@
 int
 ButtonsConfigSave(FILE * fs)
 {
+#if 0
    int                 i, num;
    Button            **blst;
    int                 flags;
@@ -1055,6 +1056,9 @@
        fprintf(fs, "1000\n");
      }
    Efree(blst);
+#else
+   fs = NULL;
+#endif
 
    return 0;
 }
@@ -1182,12 +1186,16 @@
      }
    else if (!strncmp(cmd, "list", 2))
      {
-       Button            **lst;
+       Button            **lst, *b;
 
        lst = (Button **) ListItemType(&num, LIST_TYPE_BUTTON);
        for (i = 0; i < num; i++)
          {
-            IpcPrintf("%s\n", ButtonGetName(lst[i]));
+            b = lst[i];
+            IpcPrintf("%2d %2d %2d %5d+%5d %5dx%5d %s\n",
+                      EoGetDesk(b), EoIsSticky(b), EoGetLayer(b),
+                      EoGetX(b), EoGetY(b), EoGetW(b), EoGetH(b),
+                      ButtonGetName(lst[i]));
          }
        if (lst)
           Efree(lst);




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to