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 /src/gui/gui-buffer.c | |
parent | 28fc733aaf27d43f56cb97ac909855722b82540a (diff) | |
download | weechat-31881ebacfeca4da89f6d8138e7118d0d0daba49.zip |
api: add property "type" in function buffer_get_string
Diffstat (limited to 'src/gui/gui-buffer.c')
-rw-r--r-- | src/gui/gui-buffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |