mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
Merge pull request #990 from ailin-nemui/mainwin_activity
add activity_hide_visible setting
This commit is contained in:
commit
aa80f1de61
@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
#include "module.h"
|
#include "module.h"
|
||||||
#include "signals.h"
|
#include "signals.h"
|
||||||
|
#include "settings.h"
|
||||||
|
|
||||||
#include "gui-windows.h"
|
#include "gui-windows.h"
|
||||||
|
|
||||||
@ -32,6 +33,9 @@ static void sig_activity(WINDOW_REC *window)
|
|||||||
if (!is_window_visible(window) || window->data_level == 0)
|
if (!is_window_visible(window) || window->data_level == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!settings_get_bool("activity_hide_visible"))
|
||||||
|
return;
|
||||||
|
|
||||||
window->data_level = 0;
|
window->data_level = 0;
|
||||||
g_free_and_null(window->hilight_color);
|
g_free_and_null(window->hilight_color);
|
||||||
|
|
||||||
@ -46,6 +50,7 @@ static void sig_activity(WINDOW_REC *window)
|
|||||||
|
|
||||||
void mainwindow_activity_init(void)
|
void mainwindow_activity_init(void)
|
||||||
{
|
{
|
||||||
|
settings_add_bool("lookandfeel", "activity_hide_visible", TRUE);
|
||||||
signal_add_first("window hilight", (SIGNAL_FUNC) sig_activity);
|
signal_add_first("window hilight", (SIGNAL_FUNC) sig_activity);
|
||||||
signal_add_first("window activity", (SIGNAL_FUNC) sig_activity);
|
signal_add_first("window activity", (SIGNAL_FUNC) sig_activity);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user