summaryrefslogtreecommitdiff
path: root/src/fe-text/mainwindows.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-05-15 08:25:45 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-05-15 08:25:45 +0000
commitcbdaf7d06d021a1072363f1a80ff73c7423c7bd8 (patch)
tree067c27c2823ed2825e7fb432b35318659e63e806 /src/fe-text/mainwindows.c
parent969cfe8abcdff1047696c22e13c79c1f4c239137 (diff)
downloadirssi-cbdaf7d06d021a1072363f1a80ff73c7423c7bd8.zip
Lots of changes again. Biggest ones:
- window's text buffer should work better - themes are almost working, you can change the text formats with /format - automatically try to rejoin the channel after 5 minutes if the join there failed because it was "temporarily unavailable" (netsplits) - generally cleaning code.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@216 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/mainwindows.c')
-rw-r--r--src/fe-text/mainwindows.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c
index 35bf4ecd..e30c0eb4 100644
--- a/src/fe-text/mainwindows.c
+++ b/src/fe-text/mainwindows.c
@@ -347,6 +347,17 @@ static void mainwindows_resize_bigger(int ychange, int xchange)
g_slist_free(sorted);
}
+void mainwindows_resize_horiz(int xchange)
+{
+ GSList *tmp;
+
+ for (tmp = mainwindows; tmp != NULL; tmp = tmp->next) {
+ MAIN_WINDOW_REC *rec = tmp->data;
+
+ mainwindow_resize(rec, 0, xchange);
+ }
+}
+
void mainwindows_resize(int ychange, int xchange)
{
screen_refresh_freeze();
@@ -354,6 +365,8 @@ void mainwindows_resize(int ychange, int xchange)
mainwindows_resize_smaller(ychange, xchange);
else if (ychange > 0)
mainwindows_resize_bigger(ychange, xchange);
+ else if (xchange != 0)
+ mainwindows_resize_horiz(xchange);
irssi_redraw();
screen_refresh_thaw();
@@ -595,6 +608,9 @@ void mainwindows_init(void)
void mainwindows_deinit(void)
{
+ while (mainwindows != NULL)
+ mainwindow_destroy(mainwindows->data);
+
command_unbind("window grow", (SIGNAL_FUNC) cmd_window_grow);
command_unbind("window shrink", (SIGNAL_FUNC) cmd_window_shrink);
command_unbind("window size", (SIGNAL_FUNC) cmd_window_size);