comparison mcabber/mcabber/roster.c @ 1812:5dbb3ebbc466

Add hk_unread_list_change() (Suggested by isbear)
author Mikael Berthe <mikael@lilotux.net>
date Mon, 22 Mar 2010 21:47:22 +0100
parents e6d355e50d7a
children f0a07658e009
comparison
equal deleted inserted replaced
1811:e6d355e50d7a 1812:5dbb3ebbc466
615 } 615 }
616 unread_ptr = unread_msg(unread_ptr); 616 unread_ptr = unread_msg(unread_ptr);
617 } while (unread_ptr && unread_ptr != first_unread); 617 } while (unread_ptr && unread_ptr != first_unread);
618 } 618 }
619 619
620 { 620 hk_unread_list_change(unread_count, attention_count,
621 gchar *str_unread = g_strdup_printf("%u", unread_count); 621 muc_unread, muc_attention);
622 gchar *str_attention = g_strdup_printf("%u", attention_count);
623 gchar *str_muc_unread = g_strdup_printf("%u", muc_unread);
624 gchar *str_muc_attention = g_strdup_printf("%u", muc_attention);
625 hk_arg_t args[] = {
626 { "unread", str_unread }, // All unread
627 { "attention", str_attention }, // Attention (private)
628 { "muc_unread", str_muc_unread }, // MUC unread
629 { "muc_attention", str_muc_attention }, // MUC attention (highlight)
630 { NULL, NULL },
631 };
632 hk_run_handlers(HOOK_UNREAD_LIST_CHANGE, args);
633 g_free(str_unread);
634 g_free(str_attention);
635 g_free(str_muc_unread);
636 g_free(str_muc_attention);
637 }
638 #endif 622 #endif
639 return unread_count; 623 return unread_count;
640 } 624 }
641 625
642 // roster_msg_setflag() 626 // roster_msg_setflag()