mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
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
This commit is contained in:
parent
9ed228551b
commit
9ddebe6bcf
13 changed files with 243 additions and 78 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue