comparison src/multi.c @ 2117:66975a759a52

[gaim-migrate @ 2127] whoops. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 03 Aug 2001 16:39:12 +0000
parents 109669b3887e
children fa3dfde4727e
comparison
equal deleted inserted replaced
2116:6402958c64c9 2117:66975a759a52
784 } 784 }
785 785
786 void account_online(struct gaim_connection *gc) 786 void account_online(struct gaim_connection *gc)
787 { 787 {
788 int i; 788 int i;
789 gboolean blist_existed;
789 790
790 /* first we hide the login progress meter */ 791 /* first we hide the login progress meter */
791 if (gc->meter) 792 if (gc->meter)
792 gtk_widget_destroy(gc->meter); 793 gtk_widget_destroy(gc->meter);
793 gc->meter = NULL; 794 gc->meter = NULL;
794 795
795 /* then we do the buddy list stuff */ 796 /* then we do the buddy list stuff */
796 if (mainwindow) 797 if (mainwindow)
797 gtk_widget_hide(mainwindow); 798 gtk_widget_hide(mainwindow);
798 799
800 blist_existed = blist ? TRUE : FALSE;
799 show_buddy_list(); 801 show_buddy_list();
800 refresh_buddy_window(); 802 refresh_buddy_window();
801 #ifdef USE_APPLET 803 #ifdef USE_APPLET
802 if (general_options & OPT_GEN_APP_BUDDY_SHOW) { 804 if (general_options & OPT_GEN_APP_BUDDY_SHOW) {
803 createOnlinePopup(); 805 createOnlinePopup();
804 applet_buddy_show = TRUE; 806 applet_buddy_show = TRUE;
805 } else if (!blist) { 807 } else if (!blist_existed) {
806 gtk_widget_hide(blist); 808 gtk_widget_hide(blist);
807 applet_buddy_show = FALSE; 809 applet_buddy_show = FALSE;
808 } 810 }
809 set_user_state(online); 811 set_user_state(online);
810 #endif 812 #endif