Changeset 4385

Show
Ignore:
Timestamp:
09/28/06 17:59:21 (2 years ago)
Author:
morris
Message:

Don't remove public chat on disconnect


Include timestamp/icon path in bookmarks

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wire/trunk/NEWS

    r4384 r4385  
    66- Add support for private chats 
    77- Clear the chat action indicator when scrolling to the bottom of a window 
     8- Include timestamp and icon path when saving bookmark 
    89 
    9101.1.1 
  • wire/trunk/wire/chats.c

    r4384 r4385  
    8585void wr_clear_chats(void) { 
    8686        wi_hash_remove_all_data(wr_chats); 
    87          
    88         wi_release(wr_public_chat); 
    89         wr_public_chat = NULL; 
     87        wr_chat_remove_all_users(wr_public_chat); 
     88        wr_chats_add_chat(wr_public_chat); 
    9089         
    9190        wi_release(wr_private_chat); 
     
    225224 
    226225 
     226void wr_chat_remove_all_users(wr_chat_t *chat) { 
     227        wi_list_remove_all_data(chat->users_list); 
     228        wi_hash_remove_all_data(chat->users_hash); 
     229} 
     230 
     231 
     232 
    227233wr_user_t * wr_chat_user_with_uid(wr_chat_t *chat, wr_uid_t uid) { 
    228234        return wi_hash_data_for_key(chat->users_hash, wi_number_with_int32(uid)); 
  • wire/trunk/wire/chats.h

    r4384 r4385  
    5656void                                                            wr_chat_add_user(wr_chat_t *, wr_user_t *); 
    5757void                                                            wr_chat_remove_user(wr_chat_t *, wr_user_t *); 
     58void                                                            wr_chat_remove_all_users(wr_chat_t *); 
    5859wr_user_t *                                                     wr_chat_user_with_uid(wr_chat_t *, wr_uid_t); 
    5960wr_user_t *                                                     wr_chat_user_with_nick(wr_chat_t *, wi_string_t *); 
  • wire/trunk/wire/client.c

    r4384 r4385  
    9191wi_string_t                                                     *wr_password; 
    9292 
     93wi_string_t                                                     *wr_icon_path; 
    9394wi_string_t                                                     *wr_timestamp_format; 
    9495 
  • wire/trunk/wire/client.h

    r4197 r4385  
    7272extern wi_string_t                                              *wr_login; 
    7373extern wi_string_t                                              *wr_password; 
     74 
     75extern wi_string_t                                              *wr_icon_path; 
    7476extern wi_string_t                                              *wr_timestamp_format; 
    7577 
  • wire/trunk/wire/commands.c

    r4384 r4385  
    789789         
    790790        if(string) { 
     791                wi_release(wr_icon_path); 
     792                wr_icon_path = wi_retain(path); 
     793                 
    791794                wi_release(wr_icon); 
    792795                wr_icon = wi_retain(wi_string_base64(string)); 
     
    14461449         
    14471450        wi_file_write(file, WI_STR("charset %@\n"), wi_string_encoding_charset(wr_client_string_encoding)); 
     1451        wi_file_write(file, WI_STR("timestamp %@\n"), wr_timestamp_format); 
    14481452        wi_file_write(file, WI_STR("nick %@\n"), wr_nick); 
    14491453 
     
    14511455                wi_file_write(file, WI_STR("status %@\n"), wr_status); 
    14521456 
     1457        if(wr_icon_path) 
     1458                wi_file_write(file, WI_STR("icon %@\n"), wr_icon_path); 
     1459         
    14531460        if(wr_connected) { 
    14541461                if(wi_string_length(wr_login) > 0 && wi_string_length(wr_password) > 0)