diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2006-02-20 21:55:51 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2006-02-20 21:55:51 +0000 |
commit | 13ddcc3adc9ac48a00cd7aeb8f4bd5eea24126d8 (patch) | |
tree | 5fd8ebca52197c33c527c982f95710acdf51a3ed | |
parent | 9373a7a47e4711e8db0549cec49da19db45330ae (diff) | |
download | weechat-13ddcc3adc9ac48a00cd7aeb8f4bd5eea24126d8.zip |
Added infobar_remove in C plugin API
-rw-r--r-- | doc/en/weechat.en.xml | 40 | ||||
-rw-r--r-- | doc/fr/weechat.fr.xml | 47 | ||||
-rw-r--r-- | weechat/doc/en/weechat.en.xml | 40 | ||||
-rw-r--r-- | weechat/doc/fr/weechat.fr.xml | 47 |
4 files changed, 156 insertions, 18 deletions
diff --git a/doc/en/weechat.en.xml b/doc/en/weechat.en.xml index b807d35e9..b4a3e4b7c 100644 --- a/doc/en/weechat.en.xml +++ b/doc/en/weechat.en.xml @@ -1629,6 +1629,42 @@ plugin->print_infobar (plugin, 5, "hello"); </para> </section> + <section id="secAPI_infobar_remove"> + <title>infobar_remove</title> + + <para> + Prototype: + <command> + void infobar_remove (t_weechat_plugin *plugin, int count) + </command> + </para> + <para> + Remove one or more messages in infobar stack. + </para> + <para> + Arguments: + <itemizedlist> + <listitem> + <para> + <option>plugin</option>: pointer to plugin structure + </para> + </listitem> + <listitem> + <para> + <option>count</option>: number of messages to remove + (if argument is <= 0, then all messages are removed) + </para> + </listitem> + </itemizedlist> + </para> + <para> + Return value: none. + </para> + <para> + Example: <screen>plugin->infobar_remove (1);</screen> + </para> + </section> + <section id="secAPI_log"> <title>log</title> @@ -3770,19 +3806,15 @@ weechat.print_infobar(5, "message") <screen> # perl weechat::remove_infobar(1); -weechat::remove_infobar(); # python weechat.remove_infobar(1) -weechat.remove_infobar() # ruby Weechat.remove_infobar(1) -Weechat.remove_infobar() -- lua weechat.remove_infobar(1) -weechat.remove_infobar() </screen> </para> </section> diff --git a/doc/fr/weechat.fr.xml b/doc/fr/weechat.fr.xml index 816ca7213..024da24b0 100644 --- a/doc/fr/weechat.fr.xml +++ b/doc/fr/weechat.fr.xml @@ -1653,7 +1653,48 @@ plugin->print (plugin, "freenode", "#weechat", "hello"); Valeur renvoyée : aucune. </para> <para> - Exemple : <screen>plugin->print_infobar (plugin, 5, "hello");</screen> + Exemple : +<screen> +plugin->print_infobar (plugin, 5, "hello"); +</screen> + </para> + </section> + + <section id="secAPI_infobar_remove"> + <title>infobar_remove</title> + + <para> + Prototype : + <command> + void infobar_remove (t_weechat_plugin *plugin, int nombre) + </command> + </para> + <para> + Efface un ou plusieurs messages dans la pile de la barre d'infos. + </para> + <para> + Paramètres : + <itemizedlist> + <listitem> + <para> + <option>plugin</option> : pointeur vers la structure + de l'extension + </para> + </listitem> + <listitem> + <para> + <option>nombre</option> : nombre de messages à supprimer + (si paramètre non présent ou <= 0, alors tous les messages + sont effacés) + </para> + </listitem> + </itemizedlist> + </para> + <para> + Valeur renvoyée : aucune. + </para> + <para> + Exemple : <screen>plugin->infobar_remove (1);</screen> </para> </section> @@ -3840,19 +3881,15 @@ weechat.print_infobar(5, "message") <screen> # perl weechat::remove_infobar(1); -weechat::remove_infobar(); # python weechat.remove_infobar(1) -weechat.remove_infobar() # ruby Weechat.remove_infobar(1) -Weechat.remove_infobar() -- lua weechat.remove_infobar(1) -weechat.remove_infobar() </screen> </para> </section> diff --git a/weechat/doc/en/weechat.en.xml b/weechat/doc/en/weechat.en.xml index b807d35e9..b4a3e4b7c 100644 --- a/weechat/doc/en/weechat.en.xml +++ b/weechat/doc/en/weechat.en.xml @@ -1629,6 +1629,42 @@ plugin->print_infobar (plugin, 5, "hello"); </para> </section> + <section id="secAPI_infobar_remove"> + <title>infobar_remove</title> + + <para> + Prototype: + <command> + void infobar_remove (t_weechat_plugin *plugin, int count) + </command> + </para> + <para> + Remove one or more messages in infobar stack. + </para> + <para> + Arguments: + <itemizedlist> + <listitem> + <para> + <option>plugin</option>: pointer to plugin structure + </para> + </listitem> + <listitem> + <para> + <option>count</option>: number of messages to remove + (if argument is <= 0, then all messages are removed) + </para> + </listitem> + </itemizedlist> + </para> + <para> + Return value: none. + </para> + <para> + Example: <screen>plugin->infobar_remove (1);</screen> + </para> + </section> + <section id="secAPI_log"> <title>log</title> @@ -3770,19 +3806,15 @@ weechat.print_infobar(5, "message") <screen> # perl weechat::remove_infobar(1); -weechat::remove_infobar(); # python weechat.remove_infobar(1) -weechat.remove_infobar() # ruby Weechat.remove_infobar(1) -Weechat.remove_infobar() -- lua weechat.remove_infobar(1) -weechat.remove_infobar() </screen> </para> </section> diff --git a/weechat/doc/fr/weechat.fr.xml b/weechat/doc/fr/weechat.fr.xml index 816ca7213..024da24b0 100644 --- a/weechat/doc/fr/weechat.fr.xml +++ b/weechat/doc/fr/weechat.fr.xml @@ -1653,7 +1653,48 @@ plugin->print (plugin, "freenode", "#weechat", "hello"); Valeur renvoyée : aucune. </para> <para> - Exemple : <screen>plugin->print_infobar (plugin, 5, "hello");</screen> + Exemple : +<screen> +plugin->print_infobar (plugin, 5, "hello"); +</screen> + </para> + </section> + + <section id="secAPI_infobar_remove"> + <title>infobar_remove</title> + + <para> + Prototype : + <command> + void infobar_remove (t_weechat_plugin *plugin, int nombre) + </command> + </para> + <para> + Efface un ou plusieurs messages dans la pile de la barre d'infos. + </para> + <para> + Paramètres : + <itemizedlist> + <listitem> + <para> + <option>plugin</option> : pointeur vers la structure + de l'extension + </para> + </listitem> + <listitem> + <para> + <option>nombre</option> : nombre de messages à supprimer + (si paramètre non présent ou <= 0, alors tous les messages + sont effacés) + </para> + </listitem> + </itemizedlist> + </para> + <para> + Valeur renvoyée : aucune. + </para> + <para> + Exemple : <screen>plugin->infobar_remove (1);</screen> </para> </section> @@ -3840,19 +3881,15 @@ weechat.print_infobar(5, "message") <screen> # perl weechat::remove_infobar(1); -weechat::remove_infobar(); # python weechat.remove_infobar(1) -weechat.remove_infobar() # ruby Weechat.remove_infobar(1) -Weechat.remove_infobar() -- lua weechat.remove_infobar(1) -weechat.remove_infobar() </screen> </para> </section> |