Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/screen.c @ 1700:87dd0a8f1a9c
Remove the "new message" flag when a buffer is purged with /buffer purge
We do not remove it when a buffer is closed as it may still be useful.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 07 Feb 2010 17:34:00 +0100 |
parents | bd60a275dbc2 |
children | 68981c37ed3f |
comparison
equal
deleted
inserted
replaced
1699:527c965b45c5 | 1700:87dd0a8f1a9c |
---|---|
2587 | 2587 |
2588 if (!isspe) { | 2588 if (!isspe) { |
2589 p_closebuf = g_new(guint, 1); | 2589 p_closebuf = g_new(guint, 1); |
2590 *p_closebuf = closebuf; | 2590 *p_closebuf = closebuf; |
2591 buffer_purge((gpointer)cjid, win_entry, p_closebuf); | 2591 buffer_purge((gpointer)cjid, win_entry, p_closebuf); |
2592 roster_msg_setflag(cjid, FALSE, FALSE); | |
2592 g_free(p_closebuf); | 2593 g_free(p_closebuf); |
2593 if (closebuf && !hold_chatmode) { | 2594 if (closebuf && !hold_chatmode) { |
2594 scr_set_chatmode(FALSE); | 2595 scr_set_chatmode(FALSE); |
2595 currentWindow = NULL; | 2596 currentWindow = NULL; |
2596 } | 2597 } |
2598 // (Special buffer) | 2599 // (Special buffer) |
2599 // Reset the current hbuf | 2600 // Reset the current hbuf |
2600 hbuf_free(&win_entry->bd->hbuf); | 2601 hbuf_free(&win_entry->bd->hbuf); |
2601 // Currently it can only be the status buffer | 2602 // Currently it can only be the status buffer |
2602 statushbuf = NULL; | 2603 statushbuf = NULL; |
2604 roster_msg_setflag(SPECIAL_BUFFER_STATUS_ID, TRUE, FALSE); | |
2603 | 2605 |
2604 win_entry->bd->cleared = FALSE; | 2606 win_entry->bd->cleared = FALSE; |
2605 win_entry->bd->top = NULL; | 2607 win_entry->bd->top = NULL; |
2606 } | 2608 } |
2609 | |
2610 update_roster = TRUE; | |
2607 | 2611 |
2608 // Refresh the window | 2612 // Refresh the window |
2609 scr_UpdateBuddyWindow(); | 2613 scr_UpdateBuddyWindow(); |
2610 | 2614 |
2611 // Finished :) | 2615 // Finished :) |