From ab4e5e8574c3ccffeed275eeebc4845e3f33acab Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 18 May 2009 21:01:38 +0000 Subject: Clean up manual layout code: - change the one layout function into two _refresh and _resize - create layout-manual.c for manual layout code - move the fit panes/update panes code from window.c to the new file as it is only used by manual layout now - move the resize pane code into layout-manual.c as well - get rid of the direct calls to fit/update and make them go through layout - rename a couple of variables This is mainly as a first step before reworking the manual layout code to see if anything breaks. --- tmux.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index e58ac097..6c2a2e85 100644 --- a/tmux.h +++ b/tmux.h @@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.318 2009-05-16 11:48:47 nicm Exp $ */ +/* $Id: tmux.h,v 1.319 2009-05-18 21:01:38 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -1549,8 +1549,6 @@ struct window_pane *window_add_pane(struct window *, int, void window_remove_pane(struct window *, struct window_pane *); u_int window_index_of_pane(struct window *, struct window_pane *); struct window_pane *window_pane_at_index(struct window *, u_int); -void window_fit_panes(struct window *); -void window_update_panes(struct window *); u_int window_count_panes(struct window *); void window_destroy_panes(struct window *); struct window_pane *window_pane_create(struct window *, u_int, u_int, u_int); @@ -1571,10 +1569,15 @@ void window_pane_mouse(struct window_pane *, const char * layout_name(struct window *); int layout_lookup(const char *); void layout_refresh(struct window *, int); +void layout_resize(struct window_pane *, int); int layout_select(struct window *, u_int); void layout_next(struct window *); void layout_previous(struct window *); +/* layout-manual.c */ +void layout_manual_refresh(struct window *, int); +void layout_manual_resize(struct window_pane *, int); + /* window-clock.c */ extern const struct window_mode window_clock_mode; -- cgit