option to clear the history

This commit is contained in:
ailin-nemui 2015-12-15 01:52:44 +01:00
commit 4659cea65a
5 changed files with 66 additions and 9 deletions

View file

@ -229,11 +229,16 @@ void window_set_history(WINDOW_REC *window, const char *name)
else
window->history_name = g_strdup(name);
signal_emit("window history changed", 1, window, oldname);
signal_emit("window history changed", 2, window, oldname);
g_free_not_null(oldname);
}
void window_clear_history(WINDOW_REC *window, const char *name)
{
signal_emit("window history cleared", 2, window, name);
}
void window_set_level(WINDOW_REC *window, int level)
{
g_return_if_fail(window != NULL);