1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 00:03:12 +02:00

api: add property "type" in function buffer_get_string

This commit is contained in:
Sébastien Helleu
2023-12-24 16:53:16 +01:00
parent 28fc733aaf
commit 31881ebacf
7 changed files with 12 additions and 0 deletions
+2
View File
@@ -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)