summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-06-27 08:55:40 +0200
committerSebastien Helleu <flashcode@flashtux.org>2009-06-27 08:55:40 +0200
commite06609c7cdc0afd3ea52a1770c4cab5df6e6b376 (patch)
tree6e97a83a7eb05a3b9171af6882ee2a290e6b5873
parent9fad3f128eb503c65135bdec792f260cda64c4b3 (diff)
downloadweechat-e06609c7cdc0afd3ea52a1770c4cab5df6e6b376.zip
Change default order of items in input bar: move input_paste before input_text
-rw-r--r--src/gui/gui-bar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/gui-bar.c b/src/gui/gui-bar.c
index 6dbc8d40b..8e89d4d5f 100644
--- a/src/gui/gui-bar.c
+++ b/src/gui/gui-bar.c
@@ -1794,23 +1794,23 @@ gui_bar_create_default_input ()
{
/* create input bar */
length = 1 /* "[" */
- + strlen (gui_bar_item_names[GUI_BAR_ITEM_INPUT_PASTE])
- + 3 /* "],[" */
+ strlen (gui_bar_item_names[GUI_BAR_ITEM_INPUT_PROMPT])
+ 3 /* "]+(" */
+ 4 /* "away" */
+ 3 /* "),[" */
+ strlen (gui_bar_item_names[GUI_BAR_ITEM_INPUT_SEARCH])
+ + 3 /* "],[" */
+ + strlen (gui_bar_item_names[GUI_BAR_ITEM_INPUT_PASTE])
+ 2 /* "]," */
+ strlen (gui_bar_item_names[GUI_BAR_ITEM_INPUT_TEXT])
+ 1 /* \0 */;
buf = malloc (length);
if (buf)
{
- snprintf (buf, length, "[%s],[%s]+(away),[%s],%s",
- gui_bar_item_names[GUI_BAR_ITEM_INPUT_PASTE],
+ snprintf (buf, length, "[%s]+(away),[%s],[%s],%s",
gui_bar_item_names[GUI_BAR_ITEM_INPUT_PROMPT],
gui_bar_item_names[GUI_BAR_ITEM_INPUT_SEARCH],
+ gui_bar_item_names[GUI_BAR_ITEM_INPUT_PASTE],
gui_bar_item_names[GUI_BAR_ITEM_INPUT_TEXT]);
if (gui_bar_new (GUI_BAR_DEFAULT_NAME_INPUT,
"0", /* hidden */