diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-03-07 11:26:06 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-03-07 11:26:06 +0100 |
commit | a44cc9ffde04c0bd0a28e53f5a64afcaa5479c49 (patch) | |
tree | 3c3a7e2ccbe358306b4454b611953dac5865dac4 /src/gui/curses | |
parent | 3194c641a0e687eef24d8066dab245abc71d7c1b (diff) | |
download | weechat-a44cc9ffde04c0bd0a28e53f5a64afcaa5479c49.zip |
Add new key to zoom a window (meta-z by default) (task #7470)
Diffstat (limited to 'src/gui/curses')
-rw-r--r-- | src/gui/curses/gui-curses-keyboard.c | 1 | ||||
-rw-r--r-- | src/gui/curses/gui-curses-main.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/curses/gui-curses-keyboard.c b/src/gui/curses/gui-curses-keyboard.c index 28a1d64ac..59a88eb58 100644 --- a/src/gui/curses/gui-curses-keyboard.c +++ b/src/gui/curses/gui-curses-keyboard.c @@ -138,6 +138,7 @@ gui_keyboard_default_bindings () gui_keyboard_bind (NULL, /* m-w,m-down */ "meta-wmeta-meta2-B", "/window down"); gui_keyboard_bind (NULL, /* m-w,m-left */ "meta-wmeta-meta2-D", "/window left"); gui_keyboard_bind (NULL, /* m-w,m-right */ "meta-wmeta-meta2-C", "/window right"); + gui_keyboard_bind (NULL, /* m-z */ "meta-z", "/window zoom"); gui_keyboard_bind (NULL, /* m-= */ "meta-=", "/filter toggle"); gui_keyboard_bind (NULL, /* m-0 */ "meta-0", "/buffer 10"); gui_keyboard_bind (NULL, /* m-1 */ "meta-1", "/buffer 1"); diff --git a/src/gui/curses/gui-curses-main.c b/src/gui/curses/gui-curses-main.c index f35769b78..ce6571101 100644 --- a/src/gui/curses/gui-curses-main.c +++ b/src/gui/curses/gui-curses-main.c @@ -358,8 +358,8 @@ gui_main_end (int clean_exit) free (gui_input_clipboard); /* delete layout saved */ - gui_layout_window_remove_all (); - gui_layout_buffer_remove_all (); + gui_layout_window_remove_all (&gui_layout_windows); + gui_layout_buffer_remove_all (&gui_layout_buffers, &last_gui_layout_buffer); /* delete all windows */ while (gui_windows) |