Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/screen.c @ 1135:5d7c05932b13
Add command /buffer close
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 03 Feb 2007 20:05:57 +0100 |
parents | 9dd28a56128f |
children | 5752017f6e2b |
comparison
equal
deleted
inserted
replaced
1134:995dde656033 | 1135:5d7c05932b13 |
---|---|
1751 | 1751 |
1752 // Finished :) | 1752 // Finished :) |
1753 update_panels(); | 1753 update_panels(); |
1754 } | 1754 } |
1755 | 1755 |
1756 // scr_BufferPurge() | 1756 // scr_BufferPurge(closebuf) |
1757 // Purge/Drop the current buddy buffer | 1757 // Purge/Drop the current buddy buffer |
1758 void scr_BufferPurge(void) | 1758 // If closebuf is 1, close the buffer. |
1759 void scr_BufferPurge(int closebuf) | |
1759 { | 1760 { |
1760 winbuf *win_entry; | 1761 winbuf *win_entry; |
1761 guint isspe; | 1762 guint isspe; |
1762 | 1763 |
1763 // Get win_entry | 1764 // Get win_entry |
1773 statushbuf = NULL; | 1774 statushbuf = NULL; |
1774 } | 1775 } |
1775 | 1776 |
1776 win_entry->cleared = FALSE; | 1777 win_entry->cleared = FALSE; |
1777 win_entry->top = NULL; | 1778 win_entry->top = NULL; |
1779 | |
1780 if (closebuf && !isspe) { | |
1781 scr_set_chatmode(FALSE); | |
1782 g_hash_table_remove(winbufhash, CURRENT_JID); | |
1783 } | |
1778 | 1784 |
1779 // Refresh the window | 1785 // Refresh the window |
1780 scr_UpdateBuddyWindow(); | 1786 scr_UpdateBuddyWindow(); |
1781 | 1787 |
1782 // Finished :) | 1788 // Finished :) |