Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/screen.c @ 1514:939e2957f8a8
Add option "info" (suggested by lego)
author | franky@diable |
---|---|
date | Sat, 27 Sep 2008 20:01:52 +0200 |
parents | 9d78b571e693 |
children | 9013d23f0a86 |
comparison
equal
deleted
inserted
replaced
1513:9d78b571e693 | 1514:939e2957f8a8 |
---|---|
1326 // scr_UpdateMainStatus() | 1326 // scr_UpdateMainStatus() |
1327 // Redraw the main (bottom) status line. | 1327 // Redraw the main (bottom) status line. |
1328 void scr_UpdateMainStatus(int forceupdate) | 1328 void scr_UpdateMainStatus(int forceupdate) |
1329 { | 1329 { |
1330 char *sm = from_utf8(jb_getstatusmsg()); | 1330 char *sm = from_utf8(jb_getstatusmsg()); |
1331 const char *info = settings_opt_get("info"); | |
1331 | 1332 |
1332 werase(mainstatusWnd); | 1333 werase(mainstatusWnd); |
1333 mvwprintw(mainstatusWnd, 0, 0, "%c[%c] %s", | 1334 if (info) |
1334 (unread_msg(NULL) ? '#' : ' '), | 1335 mvwprintw(mainstatusWnd, 0, 0, "%c[%c] %s: %s", |
1335 imstatus2char[jb_getstatus()], (sm ? sm : "")); | 1336 (unread_msg(NULL) ? '#' : ' '), |
1337 imstatus2char[jb_getstatus()], | |
1338 info, (sm ? sm : "")); | |
1339 else | |
1340 mvwprintw(mainstatusWnd, 0, 0, "%c[%c] %s", | |
1341 (unread_msg(NULL) ? '#' : ' '), | |
1342 imstatus2char[jb_getstatus()], (sm ? sm : "")); | |
1336 if (forceupdate) { | 1343 if (forceupdate) { |
1337 top_panel(inputPanel); | 1344 top_panel(inputPanel); |
1338 update_panels(); | 1345 update_panels(); |
1339 } | 1346 } |
1340 g_free(sm); | 1347 g_free(sm); |