Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/main.c @ 2042:0cb8ea02e472
Make completion sorting order configurable
* Use allocated plain array for categories
* Use callbacks for dynamic completions (private for now)
* Add compl_set_flags() to allow user to set completion order
* Bump api to 24-24
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Sat, 20 Oct 2012 18:29:49 +0300 |
parents | 7f7c6b87f1b1 |
children | a5acc2a1af53 |
comparison
equal
deleted
inserted
replaced
2041:e8f2db654e67 | 2042:0cb8ea02e472 |
---|---|
362 fprintf(stderr, "Usage: %s [-h|-V|-f mcabberrc_file]\n\n", argv[0]); | 362 fprintf(stderr, "Usage: %s [-h|-V|-f mcabberrc_file]\n\n", argv[0]); |
363 return -1; | 363 return -1; |
364 } | 364 } |
365 | 365 |
366 /* Initialize command system, roster and default key bindings */ | 366 /* Initialize command system, roster and default key bindings */ |
367 compl_init_system(); | |
367 cmd_init(); | 368 cmd_init(); |
368 roster_init(); | 369 roster_init(); |
369 settings_init(); | 370 settings_init(); |
370 scr_init_bindings(); | 371 scr_init_bindings(); |
371 caps_init(); | 372 caps_init(); |
372 #ifdef MODULES_ENABLE | 373 #ifdef MODULES_ENABLE |
373 compl_init_system(); | |
374 modules_init(); | 374 modules_init(); |
375 #endif | 375 #endif |
376 /* Initialize charset */ | 376 /* Initialize charset */ |
377 scr_init_locale_charset(); | 377 scr_init_locale_charset(); |
378 ut_init_debug(); | 378 ut_init_debug(); |