| 1007 update_buttons_by_protocol(b); |
1007 update_buttons_by_protocol(b); |
| 1008 |
1008 |
| 1009 gtk_widget_show(win); |
1009 gtk_widget_show(win); |
| 1010 } |
1010 } |
| 1011 |
1011 |
| 1012 void chat_set_topic(struct conversation *b, char* who, char* topic) { |
1012 void chat_set_topic(struct conversation *b, char* who, char* topic) |
| |
1013 { |
| 1013 gtk_entry_set_text(GTK_ENTRY(b->topic_text), topic); |
1014 gtk_entry_set_text(GTK_ENTRY(b->topic_text), topic); |
| 1014 } |
1015 } |
| 1015 |
1016 |
| 1016 |
1017 |
| 1017 |
1018 |
| 1021 /* FIXME : double click on chat in buddy list */ |
1022 /* FIXME : double click on chat in buddy list */ |
| 1022 serv_join_chat(connections->data, cr->exchange, cr->name); |
1023 serv_join_chat(connections->data, cr->exchange, cr->name); |
| 1023 } |
1024 } |
| 1024 } |
1025 } |
| 1025 |
1026 |
| |
1027 void delete_chat(struct conversation *b) |
| |
1028 { |
| |
1029 while (b->in_room) { |
| |
1030 g_free(b->in_room->data); |
| |
1031 b->in_room = g_list_remove(b->in_room, b->in_room->data); |
| |
1032 } |
| |
1033 while (b->ignored) { |
| |
1034 g_free(b->ignored->data); |
| |
1035 b->ignored = g_list_remove(b->ignored, b->ignored->data); |
| |
1036 } |
| |
1037 g_string_free(b->history, TRUE); |
| |
1038 g_free(b); |
| |
1039 } |
| 1026 |
1040 |
| 1027 void setup_buddy_chats() |
1041 void setup_buddy_chats() |
| 1028 { |
1042 { |
| 1029 GList *list; |
1043 GList *list; |
| 1030 struct chat_room *cr; |
1044 struct chat_room *cr; |