summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-03-26 18:58:00 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-03-26 18:58:00 +0100
commit6e7b62be9723205cb4f7dc69966ed80ed7119dd6 (patch)
tree9c27766e96d678446a6f3c4df47eb3f393ce856f /src/gui
parent5046e49747444b6e3f218b80252d97f871f8bb0e (diff)
downloadweechat-6e7b62be9723205cb4f7dc69966ed80ed7119dd6.zip
Add new bar item "away" (now displayed by default in input bar)
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-bar.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/gui-bar.c b/src/gui/gui-bar.c
index c6c73c674..77a7db154 100644
--- a/src/gui/gui-bar.c
+++ b/src/gui/gui-bar.c
@@ -1878,7 +1878,9 @@ gui_bar_create_default_input ()
+ strlen (gui_bar_item_names[GUI_BAR_ITEM_INPUT_PASTE])
+ 3 /* "],[" */
+ strlen (gui_bar_item_names[GUI_BAR_ITEM_INPUT_PROMPT])
- + 3 /* "],[" */
+ + 3 /* "]+(" */
+ + 4 /* "away" */
+ + 3 /* "),[" */
+ strlen (gui_bar_item_names[GUI_BAR_ITEM_INPUT_SEARCH])
+ 2 /* "]," */
+ strlen (gui_bar_item_names[GUI_BAR_ITEM_INPUT_TEXT])
@@ -1886,7 +1888,7 @@ gui_bar_create_default_input ()
buf = malloc (length);
if (buf)
{
- snprintf (buf, length, "[%s],[%s],[%s],%s",
+ snprintf (buf, length, "[%s],[%s]+(away),[%s],%s",
gui_bar_item_names[GUI_BAR_ITEM_INPUT_PASTE],
gui_bar_item_names[GUI_BAR_ITEM_INPUT_PROMPT],
gui_bar_item_names[GUI_BAR_ITEM_INPUT_SEARCH],