comparison mcabber/src/screen.c @ 1086:5e2e647e781b

Add command /roster group_prev|group_next and update documentation
author Mikael Berthe <mikael@lilotux.net>
date Wed, 06 Dec 2006 22:14:41 +0100
parents 07941d7feee9
children a61c3311a5bb
comparison
equal deleted inserted replaced
1085:122114b00541 1086:5e2e647e781b
1555 set_current_buddy(g_list_next(current_buddy)); 1555 set_current_buddy(g_list_next(current_buddy));
1556 if (chatmode) 1556 if (chatmode)
1557 scr_ShowBuddyWindow(); 1557 scr_ShowBuddyWindow();
1558 } 1558 }
1559 1559
1560 // scr_RosterPrevGroup()
1561 // Go to the previous group in the buddylist
1562 void scr_RosterPrevGroup(void)
1563 {
1564 GList *bud;
1565
1566 for (bud = current_buddy ; bud ; ) {
1567 bud = g_list_previous(bud);
1568 if (!bud)
1569 break;
1570 if (buddy_gettype(BUDDATA(bud)) & ROSTER_TYPE_GROUP) {
1571 set_current_buddy(bud);
1572 if (chatmode)
1573 scr_ShowBuddyWindow();
1574 break;
1575 }
1576 }
1577 }
1578
1579 // scr_RosterNextGroup()
1580 // Go to the next group in the buddylist
1581 void scr_RosterNextGroup(void)
1582 {
1583 GList *bud;
1584
1585 for (bud = current_buddy ; bud ; ) {
1586 bud = g_list_next(bud);
1587 if (!bud)
1588 break;
1589 if (buddy_gettype(BUDDATA(bud)) & ROSTER_TYPE_GROUP) {
1590 set_current_buddy(bud);
1591 if (chatmode)
1592 scr_ShowBuddyWindow();
1593 break;
1594 }
1595 }
1596 }
1597
1560 // scr_RosterSearch(str) 1598 // scr_RosterSearch(str)
1561 // Look forward for a buddy with jid/name containing str. 1599 // Look forward for a buddy with jid/name containing str.
1562 void scr_RosterSearch(char *str) 1600 void scr_RosterSearch(char *str)
1563 { 1601 {
1564 set_current_buddy(buddy_search(str)); 1602 set_current_buddy(buddy_search(str));