summaryrefslogtreecommitdiff
path: root/ted-base.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-18 16:37:51 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-18 16:37:51 -0500
commita3adbe5ea6015a76a3df84ee5942b89fbb762947 (patch)
tree712d0fdfaf23818ebf2b361306dbb9d4452e6540 /ted-base.c
parent37102a766e1913cd0548a981e5c601852ae47963 (diff)
opening files kinda working
Diffstat (limited to 'ted-base.c')
-rw-r--r--ted-base.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/ted-base.c b/ted-base.c
index ab6ec98..e00a70a 100644
--- a/ted-base.c
+++ b/ted-base.c
@@ -80,14 +80,5 @@ static void ted_load_font(Ted *ted) {
}
}
-static void ted_menu_open(Ted *ted, Menu menu) {
- ted->menu = menu;
- ted->prev_active_buffer = ted->active_buffer;
- ted->active_buffer = NULL;
-}
-
-static void ted_menu_close(Ted *ted, bool restore_prev_active_buffer) {
- ted->menu = MENU_NONE;
- if (restore_prev_active_buffer) ted->active_buffer = ted->prev_active_buffer;
- ted->prev_active_buffer = NULL;
-}
+static void menu_open(Ted *ted, Menu menu);
+static void menu_close(Ted *ted, bool restore_prev_active_buffer);