comparison src/gaimrc.c @ 5422:af62169c74fd

[gaim-migrate @ 5801] Not to be too LSchieresque, but: <SeanEgan> Which should I do? Finish writing sorting code or commit sorting code? <Robot101> the latter, then the former. This is my incomplete buddy list sorting code. Sorting methods are modular, a plugin can add its own if it wanted to. Included are four sorting methods: None - this will be perceived as no sorting. It sorts the list in the order specified in blist.xml Alphabetical - duh. By status - this isn't really written yet, but I'm going to fix it right now. This will sort using idle time, away status, and online status when it's written By log file size - this puts the people you talk to the most at the top of your list. Pretty keen, eh? Of course this is replete with Sean Egan Hacks (TM). Now I'm going to go eat some weird "golden crunch" cereal from nestle. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sun, 18 May 2003 03:41:31 +0000
parents 1c71d1337b1c
children ad445074d239
comparison
equal deleted inserted replaced
5421:7955274fa92b 5422:af62169c74fd
964 } else if (!strcmp(p->option, "blist_pos")) { 964 } else if (!strcmp(p->option, "blist_pos")) {
965 blist_pos.x = atoi(p->value[0]); 965 blist_pos.x = atoi(p->value[0]);
966 blist_pos.y = atoi(p->value[1]); 966 blist_pos.y = atoi(p->value[1]);
967 blist_pos.width = atoi(p->value[2]); 967 blist_pos.width = atoi(p->value[2]);
968 blist_pos.height = atoi(p->value[3]); 968 blist_pos.height = atoi(p->value[3]);
969 } else if (!strcmp(p->option, "sort_method")) {
970 strcpy(sort_method, p->value[0]);
969 } 971 }
970 972
971 } 973 }
972 974
973 /* this is where we do bugs and compatibility stuff */ 975 /* this is where we do bugs and compatibility stuff */
1054 fprintf(f, "\tforeground { %d } { %d } { %d }\n", fgcolor.red, fgcolor.green, fgcolor.blue); 1056 fprintf(f, "\tforeground { %d } { %d } { %d }\n", fgcolor.red, fgcolor.green, fgcolor.blue);
1055 fprintf(f, "\tbackground { %d } { %d } { %d }\n", bgcolor.red, bgcolor.green, bgcolor.blue); 1057 fprintf(f, "\tbackground { %d } { %d } { %d }\n", bgcolor.red, bgcolor.green, bgcolor.blue);
1056 fprintf(f, "\treport_idle { %d }\n", report_idle); 1058 fprintf(f, "\treport_idle { %d }\n", report_idle);
1057 fprintf(f, "\tweb_browser { %d }\n", web_browser); 1059 fprintf(f, "\tweb_browser { %d }\n", web_browser);
1058 fprintf(f, "\tweb_command { %s }\n", web_command); 1060 fprintf(f, "\tweb_command { %s }\n", web_command);
1061 fprintf(f, "\tsort_method { %s }\n", sort_method);
1059 if (current_smiley_theme) { 1062 if (current_smiley_theme) {
1060 #ifndef _WIN32 1063 #ifndef _WIN32
1061 fprintf(f, "\tsmiley_theme { %s }\n", current_smiley_theme->path); 1064 fprintf(f, "\tsmiley_theme { %s }\n", current_smiley_theme->path);
1062 #else 1065 #else
1063 char* tmp=wgaim_escape_dirsep(current_smiley_theme->path); 1066 char* tmp=wgaim_escape_dirsep(current_smiley_theme->path);