comparison src/multi.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 70c685de2be5
children b1572ac4246c
comparison
equal deleted inserted replaced
1001:b8a819390499 1002:1d8f05ea6bdf
54 g_snprintf(gc->username, sizeof(gc->username), "%s", username); 54 g_snprintf(gc->username, sizeof(gc->username), "%s", username);
55 g_snprintf(gc->password, sizeof(gc->password), "%s", password); 55 g_snprintf(gc->password, sizeof(gc->password), "%s", password);
56 gc->keepalive = -1; 56 gc->keepalive = -1;
57 gc->inpa = -1; 57 gc->inpa = -1;
58 gc->buddy_chats = NULL; 58 gc->buddy_chats = NULL;
59
60 /* this got moved to the void *proto_data, and each protocol can set this up
61 * itself, thank you very much
62 switch(proto) {
63 case PROTO_TOC:
64 gc->toc_fd = -1;
65 gc->seqno = 0;
66 gc->state = 0;
67 gc->inpa = -1;
68 break;
69 case PROTO_OSCAR:
70 gc->oscar_sess = NULL;
71 gc->oscar_conn = NULL;
72 gc->inpa = -1;
73 gc->cnpa = -1;
74 gc->paspa = -1;
75 gc->create_exchange = 0;
76 gc->create_name = NULL;
77 gc->oscar_chats = NULL;
78 break;
79 }
80 */
81 59
82 connections = g_slist_append(connections, gc); 60 connections = g_slist_append(connections, gc);
83 61
84 return gc; 62 return gc;
85 } 63 }
622 600
623 void account_online(struct gaim_connection *gc) 601 void account_online(struct gaim_connection *gc)
624 { 602 {
625 struct aim_user *u; 603 struct aim_user *u;
626 int i; 604 int i;
605
606 /* first we hide the login progress meter */
627 if (gc->meter) 607 if (gc->meter)
628 gtk_widget_destroy(gc->meter); 608 gtk_widget_destroy(gc->meter);
629 gc->meter = NULL; 609 gc->meter = NULL;
610
611 /* then we do the buddy list stuff */
612 if (mainwindow)
613 gtk_widget_hide(mainwindow);
614 show_buddy_list();
615
616 #ifdef USE_APPLET
617 if (general_options & OPT_GEN_APP_BUDDY_SHOW) {
618 refresh_buddy_window();
619 createOnlinePopup();
620 applet_buddy_show = TRUE;
621 } else {
622 gtk_widget_hide(blist);
623 applet_buddy_show = FALSE;
624 }
625 set_user_state(online);
626 #else
627 refresh_buddy_window();
628 #endif
629 setup_buddy_chats();
630
631 redo_convo_menus();
632 gaim_setup(gc);
633
634 plugin_event(event_signon, gc, 0, 0, 0);
635
636 /* everything for the account editor */
630 if (!acctedit) return; 637 if (!acctedit) return;
631 u = find_user(gc->username); 638 u = find_user(gc->username);
632 i = gtk_clist_find_row_from_data(GTK_CLIST(list), u); 639 i = gtk_clist_find_row_from_data(GTK_CLIST(list), u);
633 gtk_clist_set_text(GTK_CLIST(list), i, 1, "Yes"); 640 gtk_clist_set_text(GTK_CLIST(list), i, 1, "Yes");
634 gtk_clist_set_text(GTK_CLIST(list), i, 3, proto_name(gc->protocol)); 641 gtk_clist_set_text(GTK_CLIST(list), i, 3, proto_name(gc->protocol));
635 redo_convo_menus(); 642
643 return;
636 } 644 }
637 645
638 void account_offline(struct gaim_connection *gc) 646 void account_offline(struct gaim_connection *gc)
639 { 647 {
640 struct aim_user *u; 648 struct aim_user *u;