comparison mcabber/mcabber/screen.c @ 1761:61f0482d3993

Limit = alignment to 1/3 of screen in option list * Add scr_gettextwidth() * Use it to limit alignment of equal sign in option list to one third of available message width
author Myhailo Danylenko <isbear@ukrpost.net>
date Sat, 13 Mar 2010 18:12:47 +0200
parents e2c084204583
children e4378fbab5d7
comparison
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 {