Mercurial > pidgin
comparison plugins/tcl/TCL-HOWTO @ 8117:e280d73ed07f
[gaim-migrate @ 8821]
Since Gaim now shows plugin descriptions, this alters the Tcl API to
collect them at registration time. NOTE THAT THIS CHANGES THE TCL API.
Not that anyone uses it, but now I won't forget. Plugin registration
will have to be changed in existing plugins, and a summary added ...
see the appropriate part of the TCL-HOWTO for details.
committer: Tailor Script <tailor@pidgin.im>
| author | Ethan Blanton <elb@pidgin.im> |
|---|---|
| date | Thu, 15 Jan 2004 23:11:46 +0000 |
| parents | 1adc71ed6d45 |
| children | 552dd5d5641e |
comparison
equal
deleted
inserted
replaced
| 8116:761caeb8583e | 8117:e280d73ed07f |
|---|---|
| 22 some limitations placed upon it; it will be parsed and evaluated | 22 some limitations placed upon it; it will be parsed and evaluated |
| 23 before the rest of the Tcl script, so it cannot reference any other | 23 before the rest of the Tcl script, so it cannot reference any other |
| 24 variables or procedures declared in the script. In practice this is | 24 variables or procedures declared in the script. In practice this is |
| 25 not a problem, as the only thing this procedure should do is return a | 25 not a problem, as the only thing this procedure should do is return a |
| 26 simple list containing five items: the name of the script, its version | 26 simple list containing five items: the name of the script, its version |
| 27 number, a short description, the author, and a web page. For example: | 27 number, a summary (just a few words) of its function, a short (longer |
| 28 than the summary, but no more than a couple of sentences if possible) | |
| 29 description, the author, and a web page. For example: | |
| 28 | 30 |
| 29 proc plugin_init { } { | 31 proc plugin_init { } { |
| 30 return [ list "Example Plugin" \ | 32 return [ list "Example Plugin" \ |
| 31 "1.0" \ | 33 "1.0" \ |
| 34 "Example plugin registration" \ | |
| 32 "Example of how to register a plugin for the Tcl HOWTO" \ | 35 "Example of how to register a plugin for the Tcl HOWTO" \ |
| 33 "Ethan Blanton <eblanton@cs.purdue.edu>" \ | 36 "Ethan Blanton <eblanton@cs.purdue.edu>" \ |
| 34 "http://gaim.sf.net/" ] | 37 "http://gaim.sf.net/" ] |
| 35 } | 38 } |
| 36 | 39 |
