mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Some hilight+window activity related fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@761 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
6e0d956f3d
commit
228c1d7f36
@ -108,7 +108,6 @@ void fe_common_core_init(void)
|
||||
fe_queries_init();
|
||||
fe_ignore_init();
|
||||
fe_log_init();
|
||||
fe_messages_init();
|
||||
fe_modules_init();
|
||||
fe_server_init();
|
||||
fe_settings_init();
|
||||
@ -120,6 +119,7 @@ void fe_common_core_init(void)
|
||||
window_save_init();
|
||||
fe_core_commands_init();
|
||||
|
||||
fe_messages_init();
|
||||
fe_ignore_messages_init();
|
||||
}
|
||||
|
||||
@ -133,7 +133,6 @@ void fe_common_core_deinit(void)
|
||||
printtext_deinit();
|
||||
fe_channels_deinit();
|
||||
fe_queries_deinit();
|
||||
fe_messages_deinit();
|
||||
fe_ignore_deinit();
|
||||
fe_log_deinit();
|
||||
fe_modules_deinit();
|
||||
@ -147,6 +146,7 @@ void fe_common_core_deinit(void)
|
||||
window_save_deinit();
|
||||
fe_core_commands_deinit();
|
||||
|
||||
fe_messages_deinit();
|
||||
fe_ignore_messages_init();
|
||||
|
||||
theme_unregister();
|
||||
|
@ -379,16 +379,16 @@ void fe_messages_init(void)
|
||||
settings_add_bool("lookandfeel", "print_active_channel", FALSE);
|
||||
settings_add_bool("lookandfeel", "show_quit_once", FALSE);
|
||||
|
||||
signal_add_last("message public", (SIGNAL_FUNC) sig_message_public);
|
||||
signal_add_last("message private", (SIGNAL_FUNC) sig_message_private);
|
||||
signal_add_last("message join", (SIGNAL_FUNC) sig_message_join);
|
||||
signal_add_last("message part", (SIGNAL_FUNC) sig_message_part);
|
||||
signal_add_last("message quit", (SIGNAL_FUNC) sig_message_quit);
|
||||
signal_add_last("message kick", (SIGNAL_FUNC) sig_message_kick);
|
||||
signal_add_last("message nick", (SIGNAL_FUNC) sig_message_nick);
|
||||
signal_add_last("message own_nick", (SIGNAL_FUNC) sig_message_own_nick);
|
||||
signal_add_last("message invite", (SIGNAL_FUNC) sig_message_invite);
|
||||
signal_add_last("message topic", (SIGNAL_FUNC) sig_message_topic);
|
||||
signal_add("message public", (SIGNAL_FUNC) sig_message_public);
|
||||
signal_add("message private", (SIGNAL_FUNC) sig_message_private);
|
||||
signal_add("message join", (SIGNAL_FUNC) sig_message_join);
|
||||
signal_add("message part", (SIGNAL_FUNC) sig_message_part);
|
||||
signal_add("message quit", (SIGNAL_FUNC) sig_message_quit);
|
||||
signal_add("message kick", (SIGNAL_FUNC) sig_message_kick);
|
||||
signal_add("message nick", (SIGNAL_FUNC) sig_message_nick);
|
||||
signal_add("message own_nick", (SIGNAL_FUNC) sig_message_own_nick);
|
||||
signal_add("message invite", (SIGNAL_FUNC) sig_message_invite);
|
||||
signal_add("message topic", (SIGNAL_FUNC) sig_message_topic);
|
||||
command_bind_last("msg", NULL, (SIGNAL_FUNC) cmd_msg);
|
||||
}
|
||||
|
||||
|
@ -433,10 +433,12 @@ static void sig_statusbar_activity_hilight(WINDOW_REC *window, gpointer oldlevel
|
||||
activity_list = g_list_remove(activity_list, window);
|
||||
statusbar_item_redraw(activity_item);
|
||||
}
|
||||
else if (window->new_data != GPOINTER_TO_INT(oldlevel))
|
||||
else if (window->new_data != GPOINTER_TO_INT(oldlevel) ||
|
||||
window->last_color != 0)
|
||||
{
|
||||
/* different level as last time, just redraw it. */
|
||||
statusbar_item_redraw(activity_item);
|
||||
/* different level as last time (or maybe different
|
||||
hilight color?), just redraw it. */
|
||||
statusbar_item_redraw(activity_item);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user