summaryrefslogtreecommitdiff
path: root/ted-base.c
diff options
context:
space:
mode:
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);