Mercurial > ~mikael > mcabber > hg
diff mcabber/mcabber/screen.c @ 1791:6e0a8bfb3a01
Add scr_gettextheight()
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Mon, 15 Mar 2010 00:47:39 +0200 |
parents | af3de54ef986 |
children | c3ddb52f1055 |
line wrap: on
line diff
--- a/mcabber/mcabber/screen.c Sun Mar 14 23:21:20 2010 +0100 +++ b/mcabber/mcabber/screen.c Mon Mar 15 00:47:39 2010 +0200 @@ -859,6 +859,12 @@ return maxX - Roster_Width - scr_getprefixwidth(); } +guint scr_gettextheight(void) +{ + // log window, two status bars and one input line + return maxY - Log_Win_Height - 3; +} + // scr_print_logwindow(string) // Display the string in the log window. // Note: The string must be in the user's locale!