diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-12-24 16:53:16 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-12-24 16:53:16 +0100 |
commit | 31881ebacfeca4da89f6d8138e7118d0d0daba49 (patch) | |
tree | d983e780e877c49b8a6b205aeaed2bdb94f667f0 | |
parent | 28fc733aaf27d43f56cb97ac909855722b82540a (diff) | |
download | weechat-31881ebacfeca4da89f6d8138e7118d0d0daba49.zip |
api: add property "type" in function buffer_get_string
-rw-r--r-- | ChangeLog.adoc | 1 | ||||
-rw-r--r-- | doc/en/weechat_plugin_api.en.adoc | 1 | ||||
-rw-r--r-- | doc/fr/weechat_plugin_api.fr.adoc | 2 | ||||
-rw-r--r-- | doc/it/weechat_plugin_api.it.adoc | 2 | ||||
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.adoc | 2 | ||||
-rw-r--r-- | doc/sr/weechat_plugin_api.sr.adoc | 2 | ||||
-rw-r--r-- | src/gui/gui-buffer.c | 2 |
7 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 94b36e8db..dada09d62 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -26,6 +26,7 @@ New features:: * core: display only version with command `/version`, add options `-o` and `-ol` in command `/upgrade` * core: add number of processes in command `/sys waitpid` * core, alias, trigger: allow wildcard in commands `/bar`, `/item`, `/proxy`, `/alias` and `/trigger` (issue #1956) + * api: add property "type" in function buffer_get_string * api: add info "mouse" * buflist: jump to previous/next buffer displayed in buflist item with ctrl+wheel up/down on a buflist item (issue #1473) * irc: add option irc.look.display_host_wallops diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index 746f9e189..0744a58f9 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -14194,6 +14194,7 @@ Arguments: ** _short_name_: short name of buffer (note: used for display only and can be changed by user, this must not be used to find name of buffer, use instead _name_, _full_name_ or local variable _channel_) +** _type_: type of buffer: "formatted" or "free" _(WeeChat ≥ 4.2.0)_ ** _title_: title of buffer ** _input_: input text ** _text_search_input_: input saved before text search diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc index d2f7e8afd..1b6165551 100644 --- a/doc/fr/weechat_plugin_api.fr.adoc +++ b/doc/fr/weechat_plugin_api.fr.adoc @@ -14503,6 +14503,8 @@ Paramètres : seulement et peut être changé par l'utilisateur, il ne doit pas être utilisé pour trouver le nom du tampon, utilisez à la place _name_, _full_name_ ou bien la variable locale _channel_) +** _type_ : type de tampon : "formatted" (formaté) ou "free" (contenu libre) + _(WeeChat ≥ 4.2.0)_ ** _title_ : titre du tampon ** _input_ : texte saisi ** _text_search_input_ : texte saisi sauvegardé avant la recherche de texte diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index a327b8d9f..f6016d4b0 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -14852,6 +14852,8 @@ Argomenti: ** _short_name_: nome breve del buffer (nota: usato solo per il display e può essere cambiato dall'utente, questo nome non va usato per trovare il nome del buffer, utilizzare invece _name_, _fullname_ o la variabile locale _channel_) +// TRANSLATION MISSING +** _type_: type of buffer: "formatted" or "free" _(WeeChat ≥ 4.2.0)_ ** _title_: titolo del buffer ** _input_: testo in ingresso ** _text_search_input_: input salvato prima della ricerca nel testo diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc index 04c32e39d..bb9c7450a 100644 --- a/doc/ja/weechat_plugin_api.ja.adoc +++ b/doc/ja/weechat_plugin_api.ja.adoc @@ -14381,6 +14381,8 @@ const char *weechat_buffer_get_string (struct t_gui_buffer *buffer, ** _short_name_: バッファの短縮名 (注意: 表示目的以外に使用するのは禁止、ユーザは書き換えることが可能、バッファを検索する際にこれを使ってはいけない、_name_、_full_name_、またはローカル変数 _channel_ を使うこと) +// TRANSLATION MISSING +** _type_: type of buffer: "formatted" or "free" _(WeeChat ≥ 4.2.0)_ ** _title_: バッファのタイトル ** _input_: 入力テキスト ** _text_search_input_: テキスト検索前に保存した入力テキスト diff --git a/doc/sr/weechat_plugin_api.sr.adoc b/doc/sr/weechat_plugin_api.sr.adoc index 2e54816f4..ef99b8605 100644 --- a/doc/sr/weechat_plugin_api.sr.adoc +++ b/doc/sr/weechat_plugin_api.sr.adoc @@ -13716,6 +13716,8 @@ const char *weechat_buffer_get_string (struct t_gui_buffer *buffer, ** _name_: име бафера ** _full_name_: пуно име бафера („додатак.име”) _(WeeChat ≥ 0.3.7)_ ** _short_name_: кратко име бафера (напомена: користи се само за приказ и корисник може да га промени, ово не сме да се употребљава за проналажење имена бафера, уместо њега употребите _name_, _full_name_ или локалну променљиву _channel_) +// TRANSLATION MISSING +** _type_: type of buffer: "formatted" or "free" _(WeeChat ≥ 4.2.0)_ ** _title_: наслов бафера ** _input_: текст уноса ** _text_search_input_: сачувани унос пре претраге текста diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c index 598d72bae..c0232d927 100644 --- a/src/gui/gui-buffer.c +++ b/src/gui/gui-buffer.c @@ -1432,6 +1432,8 @@ gui_buffer_get_string (struct t_gui_buffer *buffer, const char *property) return buffer->old_full_name; else if (strcmp (property, "short_name") == 0) return gui_buffer_get_short_name (buffer); + else if (strcmp (property, "type") == 0) + return gui_buffer_type_string[buffer->type]; else if (strcmp (property, "title") == 0) return buffer->title; else if (strcmp (property, "input") == 0) |