comparison src/buddy.c @ 1000:91b7377e7b45

[gaim-migrate @ 1010] Plugins work again, I think. There may still be some bugginess. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 16 Oct 2000 20:11:18 +0000
parents 3dbc2cd326e2
children 1d8f05ea6bdf
comparison
equal deleted inserted replaced
999:0b5db8cdd30f 1000:91b7377e7b45
289 289
290 void signoff(struct gaim_connection *gc) 290 void signoff(struct gaim_connection *gc)
291 { 291 {
292 GList *mem; 292 GList *mem;
293 293
294 plugin_event(event_signoff, gc, 0, 0); 294 plugin_event(event_signoff, gc, 0, 0, 0);
295 serv_close(gc); 295 serv_close(gc);
296 296
297 if (connections) return; 297 if (connections) return;
298 while(groups) { 298 while(groups) {
299 mem = ((struct group *)groups->data)->members; 299 mem = ((struct group *)groups->data)->members;
980 struct gaim_plugin *p; 980 struct gaim_plugin *p;
981 void (*gaim_plugin_remove)(); 981 void (*gaim_plugin_remove)();
982 char *error; 982 char *error;
983 983
984 /* first we tell those who have requested it we're quitting */ 984 /* first we tell those who have requested it we're quitting */
985 plugin_event(event_quit, 0, 0, 0); 985 plugin_event(event_quit, 0, 0, 0, 0);
986 986
987 /* then we remove everyone in a mass suicide */ 987 /* then we remove everyone in a mass suicide */
988 c = plugins; 988 c = plugins;
989 while (c) { 989 while (c) {
990 p = (struct gaim_plugin *)c->data; 990 p = (struct gaim_plugin *)c->data;
1437 1437
1438 1438
1439 /* this check should also depend on whether they left, 1439 /* this check should also depend on whether they left,
1440 * and signed on again before they got erased */ 1440 * and signed on again before they got erased */
1441 if (!GTK_WIDGET_VISIBLE(b->item) || b->present == 1) { 1441 if (!GTK_WIDGET_VISIBLE(b->item) || b->present == 1) {
1442 plugin_event(event_buddy_signon, b->name, 0, 0); 1442 plugin_event(event_buddy_signon, b->name, 0, 0, 0);
1443 1443
1444 play_sound(BUDDY_ARRIVE); 1444 play_sound(BUDDY_ARRIVE);
1445 b->present = 2; 1445 b->present = 2;
1446 1446
1447 who = g_malloc(sizeof(b->show) + 10); 1447 who = g_malloc(sizeof(b->show) + 10);
1591 1591
1592 1592
1593 1593
1594 } else { 1594 } else {
1595 if (GTK_WIDGET_VISIBLE(b->item)) { 1595 if (GTK_WIDGET_VISIBLE(b->item)) {
1596 plugin_event(event_buddy_signoff, b->name, 0, 0); 1596 plugin_event(event_buddy_signoff, b->name, 0, 0, 0);
1597 play_sound(BUDDY_LEAVE); 1597 play_sound(BUDDY_LEAVE);
1598 pm = gdk_pixmap_create_from_xpm_d(blist->window, &bm, 1598 pm = gdk_pixmap_create_from_xpm_d(blist->window, &bm,
1599 NULL, (gchar **)logout_icon_xpm); 1599 NULL, (gchar **)logout_icon_xpm);
1600 gtk_widget_hide(b->pix); 1600 gtk_widget_hide(b->pix);
1601 gtk_pixmap_set(GTK_PIXMAP(b->pix), pm, bm); 1601 gtk_pixmap_set(GTK_PIXMAP(b->pix), pm, bm);