Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/main.c @ 1810:8c2651fc217a
Improve initial display when there is an error message
Chat mode is enabled automatically and the screen is refreshed.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 22 Mar 2010 21:18:29 +0100 |
parents | e73cd9377a4e |
children | e6d355e50d7a |
comparison
equal
deleted
inserted
replaced
1809:eef8c9fff727 | 1810:8c2651fc217a |
---|---|
443 if (ret < 0) { | 443 if (ret < 0) { |
444 scr_LogPrint(LPRINT_NORMAL, "No configuration file has been found."); | 444 scr_LogPrint(LPRINT_NORMAL, "No configuration file has been found."); |
445 scr_show_buddy_window(); | 445 scr_show_buddy_window(); |
446 } else { | 446 } else { |
447 /* Connection */ | 447 /* Connection */ |
448 xmpp_connect(); | 448 if (xmpp_connect()) |
449 } | 449 scr_show_buddy_window(); |
450 } | |
451 | |
452 // Initial drawing | |
453 scr_draw_roster(); | |
454 scr_do_update(); | |
450 | 455 |
451 { // add keypress processing source | 456 { // add keypress processing source |
452 GSource *mc_source = g_source_new(&mcabber_source_funcs, | 457 GSource *mc_source = g_source_new(&mcabber_source_funcs, |
453 sizeof(mcabber_source_t)); | 458 sizeof(mcabber_source_t)); |
454 GPollFD *mc_pollfd = &(((mcabber_source_t *)mc_source)->pollfd); | 459 GPollFD *mc_pollfd = &(((mcabber_source_t *)mc_source)->pollfd); |