mcabber/mcabber/screen.c
changeset 1761 61f0482d3993
parent 1756 e2c084204583
child 1780 e4378fbab5d7
--- a/mcabber/mcabber/screen.c	Sat Mar 13 16:19:46 2010 +0200
+++ b/mcabber/mcabber/screen.c	Sat Mar 13 18:12:47 2010 +0200
@@ -846,6 +846,11 @@
   return timepreflengths[(n < 3 ? n : 0)];
 }
 
+guint scr_gettextwidth(void)
+{
+  return maxX - Roster_Width - scr_getprefixwidth();
+}
+
 //  scr_print_logwindow(string)
 // Display the string in the log window.
 // Note: The string must be in the user's locale!