diff options
author | Timo Sirainen <cras@irssi.org> | 2002-02-15 09:05:45 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-02-15 09:05:45 +0000 |
commit | fcc61f2382cc930b3342bea488203d76bc2bbd79 (patch) | |
tree | b35795e5cafe26ec4d02b1cc10db9c96da096063 | |
parent | 99c3c13f13b5fdbb47c6f6141e3aa0f3ce7a3f34 (diff) | |
download | irssi-fcc61f2382cc930b3342bea488203d76bc2bbd79.zip |
window_activity() and window_item_activity() are now public. Added them to
perl as well.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2445 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/fe-common/core/Makefile.am | 1 | ||||
-rw-r--r-- | src/fe-common/core/fe-common-core.c | 4 | ||||
-rw-r--r-- | src/fe-common/core/window-activity.c | 8 | ||||
-rw-r--r-- | src/fe-common/core/window-activity.h | 13 | ||||
-rw-r--r-- | src/perl/ui/Window.xs | 13 |
5 files changed, 32 insertions, 7 deletions
diff --git a/src/fe-common/core/Makefile.am b/src/fe-common/core/Makefile.am index 4f8cb810..201c9c0c 100644 --- a/src/fe-common/core/Makefile.am +++ b/src/fe-common/core/Makefile.am @@ -56,6 +56,7 @@ noinst_HEADERS = \ printtext.h \ themes.h \ translation.h \ + window-activity.h \ window-items.h \ windows-layout.h \ fe-windows.h diff --git a/src/fe-common/core/fe-common-core.c b/src/fe-common/core/fe-common-core.c index fb0e0fec..89c17c7f 100644 --- a/src/fe-common/core/fe-common-core.c +++ b/src/fe-common/core/fe-common-core.c @@ -42,6 +42,7 @@ #include "translation.h" #include "fe-channels.h" #include "fe-windows.h" +#include "window-activity.h" #include "window-items.h" #include "windows-layout.h" @@ -87,9 +88,6 @@ void fe_server_deinit(void); void fe_settings_init(void); void fe_settings_deinit(void); -void window_activity_init(void); -void window_activity_deinit(void); - void window_commands_init(void); void window_commands_deinit(void); diff --git a/src/fe-common/core/window-activity.c b/src/fe-common/core/window-activity.c index 3e4cd80c..7238e50b 100644 --- a/src/fe-common/core/window-activity.c +++ b/src/fe-common/core/window-activity.c @@ -35,8 +35,8 @@ static char **hide_targets; static int hide_level, msg_level, hilight_level; -static void window_activity(WINDOW_REC *window, int data_level, - const char *hilight_color) +void window_activity(WINDOW_REC *window, int data_level, + const char *hilight_color) { int old_data_level; @@ -52,8 +52,8 @@ static void window_activity(WINDOW_REC *window, int data_level, GINT_TO_POINTER(old_data_level)); } -static void window_item_activity(WI_ITEM_REC *item, int data_level, - const char *hilight_color) +void window_item_activity(WI_ITEM_REC *item, int data_level, + const char *hilight_color) { int old_data_level; diff --git a/src/fe-common/core/window-activity.h b/src/fe-common/core/window-activity.h new file mode 100644 index 00000000..b904872f --- /dev/null +++ b/src/fe-common/core/window-activity.h @@ -0,0 +1,13 @@ +#ifndef __WINDOW_ACTIVITY_H +#define __WINDOW_ACTIVITY_H + +void window_activity(WINDOW_REC *window, int data_level, + const char *hilight_color); + +void window_item_activity(WI_ITEM_REC *item, int data_level, + const char *hilight_color); + +void window_activity_init(void); +void window_activity_deinit(void); + +#endif diff --git a/src/perl/ui/Window.xs b/src/perl/ui/Window.xs index d6183789..ac65480e 100644 --- a/src/perl/ui/Window.xs +++ b/src/perl/ui/Window.xs @@ -215,6 +215,12 @@ window_set_level(window, level) Irssi::UI::Window window int level +void +window_activity(window, data_level, hilight_color=NULL) + Irssi::UI::Window window + int data_level + char *hilight_color + char * window_get_active_name(window) Irssi::UI::Window window @@ -268,3 +274,10 @@ window_item_set_active(item) Irssi::Windowitem item CODE: window_item_set_active(window_item_window(item), item); + +void +window_item_activity(item, data_level, hilight_color=NULL) + Irssi::Windowitem item + int data_level + char *hilight_color + |