diff options
author | Timo Sirainen <cras@irssi.org> | 2001-08-03 22:54:08 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-08-03 22:54:08 +0000 |
commit | ce0bd80b05fb368d1e80d8c289b8579160ce0d2f (patch) | |
tree | a96fa4464efb5cd4bd5a30febaf481323778994a /src/fe-common | |
parent | daaf2756cafcb81e11e4246005b01e2d39b1caeb (diff) | |
download | irssi-ce0bd80b05fb368d1e80d8c289b8579160ce0d2f.zip |
Added sticky window information to /WINDOW.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1701 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/fe-windows.c | 2 | ||||
-rw-r--r-- | src/fe-common/core/fe-windows.h | 1 | ||||
-rw-r--r-- | src/fe-common/core/window-commands.c | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-windows.c b/src/fe-common/core/fe-windows.c index a79f99b3..01aae056 100644 --- a/src/fe-common/core/fe-windows.c +++ b/src/fe-common/core/fe-windows.c @@ -376,7 +376,7 @@ int windows_refnum_last(void) return max; } -static int window_refnum_cmp(WINDOW_REC *w1, WINDOW_REC *w2) +int window_refnum_cmp(WINDOW_REC *w1, WINDOW_REC *w2) { return w1->refnum < w2->refnum ? -1 : 1; } diff --git a/src/fe-common/core/fe-windows.h b/src/fe-common/core/fe-windows.h index 7de6fc5a..796285a8 100644 --- a/src/fe-common/core/fe-windows.h +++ b/src/fe-common/core/fe-windows.h @@ -78,6 +78,7 @@ int window_refnum_prev(int refnum, int wrap); int window_refnum_next(int refnum, int wrap); int windows_refnum_last(void); +int window_refnum_cmp(WINDOW_REC *w1, WINDOW_REC *w2); GSList *windows_get_sorted(void); WINDOW_BIND_REC *window_bind_add(WINDOW_REC *window, const char *servertag, diff --git a/src/fe-common/core/window-commands.c b/src/fe-common/core/window-commands.c index 9cf917fb..960e9cfa 100644 --- a/src/fe-common/core/window-commands.c +++ b/src/fe-common/core/window-commands.c @@ -136,6 +136,8 @@ static void cmd_window_info(WINDOW_REC *win) if (win->items != NULL) window_print_items(win); + signal_emit("window print info", 1, win); + printformat_window(win, MSGLEVEL_CLIENTCRAP, TXT_WINDOW_INFO_FOOTER); } |