Mercurial > pidgin.yaz
comparison finch/libgnt/wms/irssi.c @ 22990:307bab4c9e63
Correct the comments, and some position-calculation when the buddylist is not showing.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 17 May 2008 16:41:16 +0000 |
parents | 0b71d043a1f1 |
children | f8ffea0d1c65 |
comparison
equal
deleted
inserted
replaced
22989:adde385c7904 | 22990:307bab4c9e63 |
---|---|
1 /** | 1 /** |
2 * 1. Buddylist is aligned on the left. | 2 * 1. Buddylist is aligned on the left. |
3 * 2. The rest of the screen is split into MxN grid for conversation windows. | 3 * 2. The rest of the screen is split into MxN grid for conversation windows. |
4 * - M = irssi-split-h in ~/.gntrc:[general] | 4 * - M = split-h in ~/.gntrc:[irssi] |
5 * - N = irssi-split-v in ~/.gntrc:[general] | 5 * - N = split-v in ~/.gntrc:[irssi] |
6 * - Press alt-shift-k/j/l/h to move the selected window to the frame | 6 * - Press alt-shift-k/j/l/h to move the selected window to the frame |
7 * above/below/left/right of the current frame. | 7 * above/below/left/right of the current frame. |
8 * 3. All the other windows are always centered. | 8 * 3. All the other windows are always centered. |
9 */ | 9 */ |
10 #include <stdlib.h> | 10 #include <stdlib.h> |
50 height = (getmaxy(stdscr) - 1) / irssi->vert; | 50 height = (getmaxy(stdscr) - 1) / irssi->vert; |
51 | 51 |
52 rx = irssi->buddylistwidth; | 52 rx = irssi->buddylistwidth; |
53 if (hor) | 53 if (hor) |
54 rx += hor * width; | 54 rx += hor * width; |
55 rx++; | 55 if (rx) |
56 rx++; | |
56 | 57 |
57 ry = 0; | 58 ry = 0; |
58 if (vert) | 59 if (vert) |
59 ry += vert * height + 1; | 60 ry += vert * height + 1; |
60 | 61 |