diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2007-07-26 13:53:22 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2007-07-26 13:53:22 +0000 |
commit | e55d0a862c2f55a2df76fa7c5f6272438f239833 (patch) | |
tree | e43d3aa2832de218eb004d1b9ed3f2fe3dbd3208 /src/core | |
parent | 4e5fa17f50d1e1942da342418ff20e4a86109aae (diff) | |
download | irssi-e55d0a862c2f55a2df76fa7c5f6272438f239833.zip |
Change 'actlist_moves' boolean to 'actlist_sort' string which specifies the
sorting type to use for the activity bar:
- refnum (default)
- recent (same as actlist_moves on)
- level (sort by window level, same ordering used by active_window command)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4583 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/settings.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/settings.c b/src/core/settings.c index 68e5de75..edf87953 100644 --- a/src/core/settings.c +++ b/src/core/settings.c @@ -473,6 +473,12 @@ static int backwards_compatibility(const char *module, CONFIG_NODE *node, g_free(new_value); config_changed = TRUE; return new_key != NULL; + } else if (strcasecmp(node->key, "actlist_moves") == 0 && + node->value != NULL && strcasecmp(node->value, "yes") == 0) { + config_node_set_str(mainconfig, parent, "actlist_sort", "recent"); + config_node_set_str(mainconfig, parent, node->key, NULL); + config_changed = TRUE; + return TRUE; } } new_value = NULL, new_key = NULL; |