From 9ddebe6bcf87f8a946f636687975beec80ec8081 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 20 Dec 2001 13:29:20 +0000 Subject: Added command history groups, set them with /WINDOW HISTORY. Patch by peder@ifi.uio.no git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2276 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-windows.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/fe-common/core/fe-windows.c') diff --git a/src/fe-common/core/fe-windows.c b/src/fe-common/core/fe-windows.c index 5eb19314..53ff7a02 100644 --- a/src/fe-common/core/fe-windows.c +++ b/src/fe-common/core/fe-windows.c @@ -195,6 +195,21 @@ void window_set_name(WINDOW_REC *window, const char *name) signal_emit("window name changed", 1, window); } +void window_set_history(WINDOW_REC *window, const char *name) +{ + char *oldname; + oldname = window->history_name; + + if (*name == '\0') + window->history_name = NULL; + else + window->history_name = g_strdup(name); + + signal_emit("window history changed", 1, window, oldname); + + g_free_not_null(oldname); +} + void window_set_level(WINDOW_REC *window, int level) { g_return_if_fail(window != NULL); -- cgit v1.2.3