Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/screen.c @ 1819:d13315366ba5
Add scr_getlogwinheight()
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Tue, 23 Mar 2010 23:41:21 +0100 |
parents | 6abca6000762 |
children | 60db836ad98a |
comparison
equal
deleted
inserted
replaced
1818:4694fad35ed8 | 1819:d13315366ba5 |
---|---|
867 { | 867 { |
868 // log window, two status bars and one input line | 868 // log window, two status bars and one input line |
869 return maxY - Log_Win_Height - 3; | 869 return maxY - Log_Win_Height - 3; |
870 } | 870 } |
871 | 871 |
872 guint scr_getlogwinheight(void) | |
873 { | |
874 if (Log_Win_Height >= 2) | |
875 return Log_Win_Height - 2; | |
876 return 0; | |
877 } | |
878 | |
872 // scr_print_logwindow(string) | 879 // scr_print_logwindow(string) |
873 // Display the string in the log window. | 880 // Display the string in the log window. |
874 // Note: The string must be in the user's locale! | 881 // Note: The string must be in the user's locale! |
875 void scr_print_logwindow(const char *string) | 882 void scr_print_logwindow(const char *string) |
876 { | 883 { |