Mercurial > hg
comparison mcabber/src/screen.c @ 874:293e8955075c
Display a flag in the chat status line when the buffer is locked
When chat mode is enabled and scrolling is locked, the "~" is replaced with
a "*" in the chat status line.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 26 May 2006 22:59:02 +0200 |
parents | ee39f6d94d43 |
children | c7ba6f41d056 |
comparison
equal
deleted
inserted
replaced
873:ee39f6d94d43 | 874:293e8955075c |
---|---|
596 chatmode = TRUE; | 596 chatmode = TRUE; |
597 if (!special) { | 597 if (!special) { |
598 if (!win_entry->lock) | 598 if (!win_entry->lock) |
599 roster_msg_setflag(winId, FALSE); | 599 roster_msg_setflag(winId, FALSE); |
600 roster_setflags(winId, ROSTER_FLAG_LOCK, TRUE); | 600 roster_setflags(winId, ROSTER_FLAG_LOCK, TRUE); |
601 update_roster = TRUE; | 601 } |
602 } | 602 update_roster = TRUE; |
603 | 603 |
604 // Refresh the window | 604 // Refresh the window |
605 scr_UpdateWindow(win_entry); | 605 scr_UpdateWindow(win_entry); |
606 | 606 |
607 // Finished :) | 607 // Finished :) |
967 btype = buddy_gettype(BUDDATA(current_buddy)); | 967 btype = buddy_gettype(BUDDATA(current_buddy)); |
968 | 968 |
969 isgrp = btype & ROSTER_TYPE_GROUP; | 969 isgrp = btype & ROSTER_TYPE_GROUP; |
970 ismuc = btype & ROSTER_TYPE_ROOM; | 970 ismuc = btype & ROSTER_TYPE_ROOM; |
971 isspe = btype & ROSTER_TYPE_SPECIAL; | 971 isspe = btype & ROSTER_TYPE_SPECIAL; |
972 | |
973 if (chatmode && !isgrp) { | |
974 winbuf *win_entry; | |
975 win_entry = scr_SearchWindow(buddy_getjid(BUDDATA(current_buddy)), isspe); | |
976 if (win_entry && win_entry->lock) | |
977 mvwprintw(chatstatusWnd, 0, 0, "*"); | |
978 } | |
972 | 979 |
973 if (isgrp || isspe) { | 980 if (isgrp || isspe) { |
974 buf_locale = from_utf8(fullname); | 981 buf_locale = from_utf8(fullname); |
975 if (isgrp) | 982 if (isgrp) |
976 mvwprintw(chatstatusWnd, 0, 5, "Group: %s", buf_locale); | 983 mvwprintw(chatstatusWnd, 0, 5, "Group: %s", buf_locale); |