From e06609c7cdc0afd3ea52a1770c4cab5df6e6b376 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 27 Jun 2009 08:55:40 +0200 Subject: [PATCH] Change default order of items in input bar: move input_paste before input_text --- src/gui/gui-bar.c | 8 ++++---- 1 file 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 */