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
This commit is contained in:
Emanuele Giaquinta 2007-07-26 13:53:22 +00:00 committed by exg
commit e55d0a862c
2 changed files with 46 additions and 2 deletions

View file

@ -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;