diff options
author | Timo Sirainen <cras@irssi.org> | 2003-11-17 14:09:15 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2003-11-17 14:09:15 +0000 |
commit | f02d35a8de2bfda48fd6efc4dc5c56faba30d00b (patch) | |
tree | e87259004f150e6f438a8c808a8d41ac2431fddd /src/fe-text/gui-readline.c | |
parent | 8c717cd73b5b6c5765f24551fcfb9e6e8c09eb15 (diff) | |
download | irssi-f02d35a8de2bfda48fd6efc4dc5c56faba30d00b.zip |
paste texts are themeable now.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3171 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/gui-readline.c')
-rw-r--r-- | src/fe-text/gui-readline.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index 25cb8fe1..6c6a777c 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -19,6 +19,7 @@ */ #include "module.h" +#include "module-formats.h" #include "signals.h" #include "misc.h" #include "settings.h" @@ -226,6 +227,7 @@ static void paste_flush(int send) static gboolean paste_timeout(gpointer data) { GTimeVal now; + char *str; int diff; if (paste_state == 0) { @@ -249,13 +251,17 @@ static gboolean paste_timeout(gpointer data) } else if (!paste_prompt) { paste_prompt = TRUE; paste_old_prompt = g_strdup(active_entry->prompt); - printtext_window(active_win, MSGLEVEL_CLIENTNOTICE, - "Pasting %u lines to %s. Press Ctrl-O if you wish to do this or Ctrl-C to cancel.", - paste_line_count, - active_win->active == NULL ? "window" : - active_win->active->visible_name); - gui_entry_set_prompt(active_entry, "Hit Ctrl-O to paste, Ctrl-C to abort?"); + printformat_window(active_win, MSGLEVEL_CLIENTNOTICE, + TXT_PASTE_WARNING, + paste_line_count, + active_win->active == NULL ? "window" : + active_win->active->visible_name); + + str = format_get_text(MODULE_NAME, active_win, NULL, NULL, + TXT_PASTE_PROMPT, 0, 0); + gui_entry_set_prompt(active_entry, str); gui_entry_set_text(active_entry, ""); + g_free(str); } return TRUE; } |