Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/screen.c @ 961:95659cf9ea1a
Display mcabber version in the status window
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 17 Sep 2006 14:32:27 +0200 |
parents | 527d6f234924 |
children | d9acb7f2a3d1 |
comparison
equal
deleted
inserted
replaced
960:90ff94f0fbbb | 961:95659cf9ea1a |
---|---|
767 // expert... :-\ Mikael. | 767 // expert... :-\ Mikael. |
768 // | 768 // |
769 void scr_DrawMainWindow(unsigned int fullinit) | 769 void scr_DrawMainWindow(unsigned int fullinit) |
770 { | 770 { |
771 int requested_size; | 771 int requested_size; |
772 gchar *ver, *message; | |
772 | 773 |
773 Log_Win_Height = DEFAULT_LOG_WIN_HEIGHT; | 774 Log_Win_Height = DEFAULT_LOG_WIN_HEIGHT; |
774 requested_size = settings_opt_get_int("log_win_height"); | 775 requested_size = settings_opt_get_int("log_win_height"); |
775 if (requested_size > 0) { | 776 if (requested_size > 0) { |
776 if (maxY > requested_size + 3) | 777 if (maxY > requested_size + 3) |
842 werase(chatWnd); | 843 werase(chatWnd); |
843 } | 844 } |
844 | 845 |
845 /* Draw/init windows */ | 846 /* Draw/init windows */ |
846 | 847 |
847 mvwprintw(chatWnd, 0, 0, "Thanks for using mcabber.\n"); | 848 ver = mcabber_version(); |
849 message = g_strdup_printf("MCabber version %s.\n", ver); | |
850 mvwprintw(chatWnd, 0, 0, message); | |
848 mvwprintw(chatWnd, 1, 0, "http://www.lilotux.net/~mikael/mcabber/"); | 851 mvwprintw(chatWnd, 1, 0, "http://www.lilotux.net/~mikael/mcabber/"); |
852 g_free(ver); | |
853 g_free(message); | |
849 | 854 |
850 // Auto-scrolling in log window | 855 // Auto-scrolling in log window |
851 scrollok(logWnd, TRUE); | 856 scrollok(logWnd, TRUE); |
852 | 857 |
853 | 858 |