mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 05:46:38 +02:00
Added infobar_remove in C plugin API
This commit is contained in:
+36
-4
@@ -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>
|
||||
|
||||
+42
-5
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user