Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/screen.c @ 1949:13d18777a629
Add scr_buffer_readmark()
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 14 Mar 2011 12:50:15 +0100 |
parents | e8cebf5fd36c |
children | aec86670047b |
comparison
equal
deleted
inserted
replaced
1948:e8cebf5fd36c | 1949:13d18777a629 |
---|---|
2798 | 2798 |
2799 // Finished :) | 2799 // Finished :) |
2800 update_panels(); | 2800 update_panels(); |
2801 } | 2801 } |
2802 | 2802 |
2803 void scr_buffer_readmark(gboolean action) | |
2804 { | |
2805 winbuf *win_entry; | |
2806 guint isspe; | |
2807 | |
2808 // Get win_entry | |
2809 if (!current_buddy) return; | |
2810 isspe = buddy_gettype(BUDDATA(current_buddy)) & ROSTER_TYPE_SPECIAL; | |
2811 if (isspe) return; // Maybe not necessary | |
2812 win_entry = scr_search_window(CURRENT_JID, isspe); | |
2813 if (!win_entry) return; | |
2814 | |
2815 hbuf_set_readmark(win_entry->bd->hbuf, action); | |
2816 } | |
2817 | |
2818 | |
2803 // scr_buffer_top_bottom() | 2819 // scr_buffer_top_bottom() |
2804 // Jump to the head/tail of the current buddy window | 2820 // Jump to the head/tail of the current buddy window |
2805 // (top if topbottom == -1, bottom topbottom == 1) | 2821 // (top if topbottom == -1, bottom topbottom == 1) |
2806 void scr_buffer_top_bottom(int topbottom) | 2822 void scr_buffer_top_bottom(int topbottom) |
2807 { | 2823 { |