summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-05-15 21:38:40 +0200
committerSebastien Helleu <flashcode@flashtux.org>2013-05-15 21:38:40 +0200
commite2807e5f23490265c488fed3335a70f206012c6b (patch)
tree51c9db25f1550593ecec418a5c07451232ea7497 /src
parentc7e8e6856d41ce6b81c84e5fa5a29a23a265f64f (diff)
downloadweechat-e2807e5f23490265c488fed3335a70f206012c6b.zip
core: add variable "current_layout" in infolist "layout"
Diffstat (limited to 'src')
-rw-r--r--src/gui/gui-layout.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/gui-layout.c b/src/gui/gui-layout.c
index c7d348685..5cfc635da 100644
--- a/src/gui/gui-layout.c
+++ b/src/gui/gui-layout.c
@@ -1050,6 +1050,9 @@ gui_layout_add_to_infolist (struct t_infolist *infolist,
if (!ptr_item)
return 0;
+ if (!infolist_new_var_integer (ptr_item, "current_layout",
+ (gui_layout_current == layout) ? 1 : 0))
+ return 0;
if (!infolist_new_var_string (ptr_item, "name", layout->name))
return 0;
if (!infolist_new_var_integer (ptr_item, "internal_id", layout->internal_id))