Mercurial > pidgin
comparison src/multi.c @ 2380:6f83c22d9e70
[gaim-migrate @ 2393]
(19:13:52) vanguardist: it's easy mmmkay
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 28 Sep 2001 02:16:34 +0000 |
parents | 2927c2c26fe6 |
children | 569ae9f2bb89 |
comparison
equal
deleted
inserted
replaced
2379:cacaf7ace3a5 | 2380:6f83c22d9e70 |
---|---|
1078 if (gc->meter) | 1078 if (gc->meter) |
1079 gtk_widget_destroy(gc->meter); | 1079 gtk_widget_destroy(gc->meter); |
1080 gc->meter = NULL; | 1080 gc->meter = NULL; |
1081 } | 1081 } |
1082 | 1082 |
1083 void signoff_all(gpointer w, gpointer d) | |
1084 { | |
1085 GSList *c = connections; | |
1086 struct gaim_connection *g = NULL; | |
1087 | |
1088 while (c) { | |
1089 g = (struct gaim_connection *)c->data; | |
1090 g->wants_to_die = TRUE; | |
1091 signoff(g); | |
1092 c = connections; | |
1093 } | |
1094 } | |
1095 | |
1096 void signoff(struct gaim_connection *gc) | |
1097 { | |
1098 /* core stuff */ | |
1099 debug_printf("date: %s\n", full_date()); | |
1100 plugin_event(event_signoff, gc, 0, 0, 0); | |
1101 system_log(log_signoff, gc, NULL, OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); | |
1102 update_keepalive(gc, FALSE); | |
1103 | |
1104 /* UI stuff */ | |
1105 convo_menu_remove(gc); | |
1106 remove_icon_data(gc); | |
1107 serv_close(gc); | |
1108 redo_buddy_list(); | |
1109 build_edit_tree(); | |
1110 do_away_menu(); | |
1111 do_proto_menu(); | |
1112 redo_convo_menus(); | |
1113 #ifdef USE_APPLET | |
1114 if (connections) | |
1115 set_user_state(online); | |
1116 #endif | |
1117 update_connection_dependent_prefs(); | |
1118 | |
1119 if (connections) | |
1120 return; | |
1121 | |
1122 destroy_all_dialogs(); | |
1123 destroy_buddy(); | |
1124 #ifdef USE_APPLET | |
1125 set_user_state(offline); | |
1126 applet_buddy_show = FALSE; | |
1127 applet_widget_unregister_callback(APPLET_WIDGET(applet), "signoff"); | |
1128 remove_applet_away(); | |
1129 #else | |
1130 show_login(); | |
1131 #endif /* USE_APPLET */ | |
1132 if (misc_options & OPT_MISC_BUDDY_TICKER) | |
1133 BuddyTickerSignoff(); | |
1134 } | |
1135 | |
1083 struct aim_user *new_user(const char *name, int proto, int opts) | 1136 struct aim_user *new_user(const char *name, int proto, int opts) |
1084 { | 1137 { |
1085 char *titles[4]; | 1138 char *titles[4]; |
1086 int i; | 1139 int i; |
1087 | 1140 |