Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/screen.c @ 2009:a859ed648638
Replace the option « no_space_before_items » with « roster_no_leading_space ».
author | Simon Jacquin <simon@jacquin.me> |
---|---|
date | Tue, 28 Feb 2012 20:26:22 +0100 |
parents | 0d5ece2324c6 |
children | 2039ea6bd7a5 |
comparison
equal
deleted
inserted
replaced
2008:0d5ece2324c6 | 2009:a859ed648638 |
---|---|
125 | 125 |
126 static int roster_hidden; | 126 static int roster_hidden; |
127 static int chatmode; | 127 static int chatmode; |
128 static int multimode; | 128 static int multimode; |
129 static char *multiline, *multimode_subj; | 129 static char *multiline, *multimode_subj; |
130 static int no_space_before_items; | 130 static int roster_no_leading_space; |
131 | 131 |
132 static bool Curses; | 132 static bool Curses; |
133 static bool log_win_on_top; | 133 static bool log_win_on_top; |
134 static bool roster_win_on_right; | 134 static bool roster_win_on_right; |
135 static guint autoaway_source = 0; | 135 static guint autoaway_source = 0; |
1543 int requested_size; | 1543 int requested_size; |
1544 gchar *ver, *message; | 1544 gchar *ver, *message; |
1545 int chat_y_pos, chatstatus_y_pos, log_y_pos; | 1545 int chat_y_pos, chatstatus_y_pos, log_y_pos; |
1546 int roster_x_pos, chat_x_pos; | 1546 int roster_x_pos, chat_x_pos; |
1547 | 1547 |
1548 no_space_before_items = settings_opt_get_int("no_space_before_items"); | 1548 roster_no_leading_space = settings_opt_get_int("roster_no_leading_space"); |
1549 | 1549 |
1550 Log_Win_Height = DEFAULT_LOG_WIN_HEIGHT; | 1550 Log_Win_Height = DEFAULT_LOG_WIN_HEIGHT; |
1551 requested_size = settings_opt_get_int("log_win_height"); | 1551 requested_size = settings_opt_get_int("log_win_height"); |
1552 if (requested_size > 0) { | 1552 if (requested_size > 0) { |
1553 if (maxY > requested_size + 3) | 1553 if (maxY > requested_size + 3) |
2003 x_pos = 1; // 1 char offset (vertical line) | 2003 x_pos = 1; // 1 char offset (vertical line) |
2004 else | 2004 else |
2005 x_pos = 0; | 2005 x_pos = 0; |
2006 | 2006 |
2007 space = g_new0(char, 2); | 2007 space = g_new0(char, 2); |
2008 if (no_space_before_items) { | 2008 if (roster_no_leading_space) { |
2009 space[0] = '\0'; | 2009 space[0] = '\0'; |
2010 prefix_length = 6; | 2010 prefix_length = 6; |
2011 } else { | 2011 } else { |
2012 space[0] = ' '; | 2012 space[0] = ' '; |
2013 prefix_length = 7; | 2013 prefix_length = 7; |