Enlightenment CVS committal

Author  : handyande
Project : misc
Module  : engage

Dir     : misc/engage/src


Modified Files:
        userconfig.c 


Log Message:
A workaround for a small e_app issue that requires time to fix
===================================================================
RCS file: /cvsroot/enlightenment/misc/engage/src/userconfig.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- userconfig.c        8 Oct 2004 21:34:22 -0000       1.9
+++ userconfig.c        11 Oct 2004 18:37:21 -0000      1.10
@@ -68,6 +68,24 @@
           od_icon_del(tmp);
         }
         break;
+      case E_APP_CHANGE:
+        /* this is a hack for now, if icon is changed see if it really is new.
+         */
+        l = dock.applnks;
+        tmp = NULL;
+        while (l) {
+          if (strcmp(((OD_Icon *) l->data)->winclass, a->winclass) == 0) {
+             tmp = l->data;
+             break;
+          }
+          l = l->next;
+        }
+        if (!tmp) {
+          tmp = od_icon_new_applnk(a, NULL, NULL);
+          tmp->launcher = 1;
+          od_dock_add_applnk(tmp);
+        }
+        break;
       default:
         printf("Unhandled callback on applinks %d\n", ch);
     }




-------------------------------------------------------
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