Mercurial > pidgin
comparison src/toc.c @ 1002:1d8f05ea6bdf
[gaim-migrate @ 1012]
i don't even remember what happened. all good things, i hope
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Wed, 18 Oct 2000 02:38:18 +0000 |
| parents | 91b7377e7b45 |
| children | e1e36f95af9a |
comparison
equal
deleted
inserted
replaced
| 1001:b8a819390499 | 1002:1d8f05ea6bdf |
|---|---|
| 38 #include "prpl.h" | 38 #include "prpl.h" |
| 39 #include "multi.h" | 39 #include "multi.h" |
| 40 #include "gaim.h" | 40 #include "gaim.h" |
| 41 #include "gnome_applet_mgr.h" | 41 #include "gnome_applet_mgr.h" |
| 42 | 42 |
| 43 #define REVISION "gaim:$Revision: 1010 $" | 43 #define REVISION "gaim:$Revision: 1012 $" |
| 44 | 44 |
| 45 struct toc_data { | 45 struct toc_data { |
| 46 int toc_fd; | 46 int toc_fd; |
| 47 int seqno; | 47 int seqno; |
| 48 int state; | 48 int state; |
| 134 g_snprintf(buf, sizeof(buf), "Retrieving config..."); | 134 g_snprintf(buf, sizeof(buf), "Retrieving config..."); |
| 135 set_login_progress(gc, 5, buf); | 135 set_login_progress(gc, 5, buf); |
| 136 while (gtk_events_pending()) | 136 while (gtk_events_pending()) |
| 137 gtk_main_iteration(); | 137 gtk_main_iteration(); |
| 138 | 138 |
| 139 serv_finish_login(gc); | |
| 140 account_online(gc); | |
| 141 | |
| 139 config = toc_wait_config(gc); | 142 config = toc_wait_config(gc); |
| 140 tdt->state = STATE_ONLINE; | 143 tdt->state = STATE_ONLINE; |
| 141 | 144 |
| 142 if (mainwindow) | |
| 143 gtk_widget_hide(mainwindow); | |
| 144 show_buddy_list(); | |
| 145 #ifdef USE_APPLET | |
| 146 if (general_options & OPT_GEN_APP_BUDDY_SHOW) { | |
| 147 refresh_buddy_window(); | |
| 148 createOnlinePopup(); | |
| 149 applet_buddy_show = TRUE; | |
| 150 } else { | |
| 151 gtk_widget_hide(blist); | |
| 152 applet_buddy_show = FALSE; | |
| 153 } | |
| 154 | |
| 155 set_user_state(online); | |
| 156 #else | |
| 157 refresh_buddy_window(); | |
| 158 #endif | |
| 159 if (config != NULL) | 145 if (config != NULL) |
| 160 parse_toc_buddy_list(gc, config, 0); | 146 parse_toc_buddy_list(gc, config, 0); |
| 161 else | 147 else |
| 162 do_import(0, gc); | 148 do_import(0, gc); |
| 163 | 149 |
| 164 setup_buddy_chats(); | |
| 165 | |
| 166 g_snprintf(buf2, sizeof(buf2), "toc_init_done"); | 150 g_snprintf(buf2, sizeof(buf2), "toc_init_done"); |
| 167 sflap_send(gc, buf2, -1, TYPE_DATA); | 151 sflap_send(gc, buf2, -1, TYPE_DATA); |
| 168 | 152 |
| 169 g_snprintf(buf2, sizeof(buf2), "toc_set_caps %s %s %s %s %s", | 153 g_snprintf(buf2, sizeof(buf2), "toc_set_caps %s %s %s %s %s", |
| 170 FILE_SEND_UID, FILE_GET_UID, B_ICON_UID, IMAGE_UID, | 154 FILE_SEND_UID, FILE_GET_UID, B_ICON_UID, IMAGE_UID, |
| 171 VOICE_UID); | 155 VOICE_UID); |
| 172 sflap_send(gc, buf2, -1, TYPE_DATA); | 156 sflap_send(gc, buf2, -1, TYPE_DATA); |
| 173 | 157 |
| 174 if (gc->keepalive < 0) | 158 if (gc->keepalive < 0) |
| 175 update_keepalive(gc, gc->options & OPT_USR_KEEPALV); | 159 update_keepalive(gc, gc->options & OPT_USR_KEEPALV); |
| 176 | |
| 177 serv_finish_login(gc); | |
| 178 gaim_setup(gc); | |
| 179 } | 160 } |
| 180 | 161 |
| 181 void toc_close(struct gaim_connection *gc) | 162 void toc_close(struct gaim_connection *gc) |
| 182 { | 163 { |
| 183 if (gc->protocol != PROTO_TOC) return; /* how did this happen? */ | 164 if (gc->protocol != PROTO_TOC) return; /* how did this happen? */ |
