summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-08-03 22:54:08 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-08-03 22:54:08 +0000
commitce0bd80b05fb368d1e80d8c289b8579160ce0d2f (patch)
treea96fa4464efb5cd4bd5a30febaf481323778994a /src/fe-common
parentdaaf2756cafcb81e11e4246005b01e2d39b1caeb (diff)
downloadirssi-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.c2
-rw-r--r--src/fe-common/core/fe-windows.h1
-rw-r--r--src/fe-common/core/window-commands.c2
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);
}