summaryrefslogtreecommitdiff
path: root/src/gui/gui-buffer.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-12-24 16:53:16 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-12-24 16:53:16 +0100
commit31881ebacfeca4da89f6d8138e7118d0d0daba49 (patch)
treed983e780e877c49b8a6b205aeaed2bdb94f667f0 /src/gui/gui-buffer.c
parent28fc733aaf27d43f56cb97ac909855722b82540a (diff)
downloadweechat-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.c2
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)