Mercurial > hg
diff mcabber/src/screen.c @ 104:fe7257d251ac
[/trunk] Changeset 118 by mikael
* Commands are ready. Callback system in place.
* Implement /roster callback :)
* Completion is case-insensitive (good idea??)
author | mikael |
---|---|
date | Thu, 21 Apr 2005 20:22:35 +0000 |
parents | 93dcc4e15d4a |
children | 91d3ec21c24e |
line wrap: on
line diff
--- a/mcabber/src/screen.c Thu Apr 21 19:38:23 2005 +0000 +++ b/mcabber/src/screen.c Thu Apr 21 20:22:35 2005 +0000 @@ -535,6 +535,22 @@ return inputWnd; } +void scr_RosterTop() +{ + current_buddy = buddylist; + // XXX We should rebuild the buddylist but perhaps not everytime? + if (chatmode) + scr_ShowBuddyWindow(); +} + +void scr_RosterBottom() +{ + current_buddy = g_list_last(buddylist); + // XXX We should rebuild the buddylist but perhaps not everytime? + if (chatmode) + scr_ShowBuddyWindow(); +} + void scr_RosterUp() { if (current_buddy) { @@ -544,6 +560,9 @@ } } // XXX We should rebuild the buddylist but perhaps not everytime? + + if (chatmode) + scr_ShowBuddyWindow(); } void scr_RosterDown() @@ -555,6 +574,9 @@ } } // XXX We should rebuild the buddylist but perhaps not everytime? + + if (chatmode) + scr_ShowBuddyWindow(); } // scr_LogPrint(...) @@ -787,13 +809,9 @@ break; case KEY_UP: scr_RosterUp(); - if (chatmode) - scr_ShowBuddyWindow(); break; case KEY_DOWN: scr_RosterDown(); - if (chatmode) - scr_ShowBuddyWindow(); break; case KEY_PPAGE: scr_LogPrint("PageUp??");