mcabber/mcabber/screen.c
changeset 1761 61f0482d3993
parent 1756 e2c084204583
child 1780 e4378fbab5d7
equal deleted inserted replaced
1760:106bbf7e97da 1761:61f0482d3993
   844 {
   844 {
   845   guint n = settings_opt_get_int("time_prefix");
   845   guint n = settings_opt_get_int("time_prefix");
   846   return timepreflengths[(n < 3 ? n : 0)];
   846   return timepreflengths[(n < 3 ? n : 0)];
   847 }
   847 }
   848 
   848 
       
   849 guint scr_gettextwidth(void)
       
   850 {
       
   851   return maxX - Roster_Width - scr_getprefixwidth();
       
   852 }
       
   853 
   849 //  scr_print_logwindow(string)
   854 //  scr_print_logwindow(string)
   850 // Display the string in the log window.
   855 // Display the string in the log window.
   851 // Note: The string must be in the user's locale!
   856 // Note: The string must be in the user's locale!
   852 void scr_print_logwindow(const char *string)
   857 void scr_print_logwindow(const char *string)
   853 {
   858 {