Enlightenment CVS committal Author : kwo Project : e16 Module : e
Dir : e16/e/src Modified Files: aclass.c Log Message: Added command to list keybindings. =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/aclass.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -3 -r1.10 -r1.11 --- aclass.c 12 Feb 2005 19:44:16 -0000 1.10 +++ aclass.c 17 Feb 2005 21:35:06 -0000 1.11 @@ -1029,6 +1029,26 @@ if (!p || cmd[0] == '?') { } + else if (!strncmp(cmd, "kb", 2)) + { + ActionClass *ac; + Action *aa; + + ac = FindItem("KEYBINDINGS", 0, LIST_FINDBY_NAME, + LIST_TYPE_ACLASS_GLOBAL); + if (!ac || ac->num <= 0) + return; + + IpcPrintf("Aclass %s global\n", ac->name); + for (i = 0; i < ac->num; i++) + { + aa = ac->list[i]; + len = ActionEncode(aa, prm, sizeof(prm)); + if (len <= 0) + continue; + IpcPrintf(prm); + } + } else if (!strncmp(cmd, "list", 2)) { ActionClass **lst; @@ -1225,6 +1245,7 @@ AclassIpc, "aclass", "ac", "Action class functions", + " aclass kb List key bindings\n" " aclass list List action classes\n" " aclass load [all] Reload user defined/all action classes\n"} , ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs