Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/modules/ibox


Modified Files:
        e_mod_main.c 


Log Message:
Ravenlock's ibox patch for icons always showing all icons when restart.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/modules/ibox/e_mod_main.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -3 -r1.80 -r1.81
--- e_mod_main.c        3 Jan 2007 06:14:03 -0000       1.80
+++ e_mod_main.c        18 Mar 2007 17:15:59 -0000      1.81
@@ -1017,9 +1017,11 @@
    E_Event_Border_Add *ev;
    IBox *b;
    IBox_Icon *ic;
+   E_Desk *desk;
 
    ev = event;
    /* add if iconic */
+   desk = e_desk_current_get(ev->border->zone);
    if (ev->border->iconic)
      {
        Evas_List *l, *ibox;
@@ -1028,6 +1030,7 @@
          {
             b = l->data;
             if (_ibox_icon_find(b, ev->border)) continue;
+            if ((b->show_desk) && (ev->border->desk != desk)) continue;
             ic = _ibox_icon_new(b, ev->border);
             if (!ic) continue;
             b->icons = evas_list_append(b->icons, ic);
@@ -1078,15 +1081,18 @@
    IBox *b;
    IBox_Icon *ic;
    Evas_List *l, *ibox;
+   E_Desk *desk;
 
    ev = event;
    /* add icon for ibox for right zone */
    /* do some sort of anim when iconifying */
+   desk = e_desk_current_get(ev->border->zone);
    ibox = _ibox_zone_find(ev->border->zone);
    for (l = ibox; l; l = l->next)
      {
        b = l->data;
        if (_ibox_icon_find(b, ev->border)) continue;
+       if ((b->show_desk) && (ev->border->desk != desk)) continue;
        ic = _ibox_icon_new(b, ev->border);
        if (!ic) continue;
        b->icons = evas_list_append(b->icons, ic);



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to