version 1.34, 2013/03/21 16:09:17 |
version 1.35, 2013/03/21 16:09:59 |
|
|
} |
} |
|
|
struct window_choose_data * |
struct window_choose_data * |
window_choose_add_session(struct window_pane *wp, struct cmd_ctx *ctx, |
window_choose_add_session(struct window_pane *wp, struct client *c, |
struct session *s, const char *template, char *action, u_int idx) |
struct session *s, const char *template, char *action, u_int idx) |
{ |
{ |
struct window_choose_data *wcd; |
struct window_choose_data *wcd; |
struct client *c = ctx->curclient; |
|
|
|
wcd = window_choose_data_create(TREE_SESSION, c, c->session); |
wcd = window_choose_data_create(TREE_SESSION, c, c->session); |
wcd->idx = s->idx; |
wcd->idx = s->idx; |
|
|
} |
} |
|
|
struct window_choose_data * |
struct window_choose_data * |
window_choose_add_item(struct window_pane *wp, struct cmd_ctx *ctx, |
window_choose_add_item(struct window_pane *wp, struct client *c, |
struct winlink *wl, const char *template, char *action, u_int idx) |
struct winlink *wl, const char *template, char *action, u_int idx) |
{ |
{ |
struct window_choose_data *wcd; |
struct window_choose_data *wcd; |
struct client *c = ctx->curclient; |
|
char *expanded; |
char *expanded; |
|
|
wcd = window_choose_data_create(TREE_OTHER, c, c->session); |
wcd = window_choose_data_create(TREE_OTHER, c, c->session); |
|
|
} |
} |
|
|
struct window_choose_data * |
struct window_choose_data * |
window_choose_add_window(struct window_pane *wp, struct cmd_ctx *ctx, |
window_choose_add_window(struct window_pane *wp, struct client *c, |
struct session *s, struct winlink *wl, const char *template, |
struct session *s, struct winlink *wl, const char *template, |
char *action, u_int idx) |
char *action, u_int idx) |
{ |
{ |
struct window_choose_data *wcd; |
struct window_choose_data *wcd; |
struct client *c = ctx->curclient; |
|
char *expanded; |
char *expanded; |
|
|
wcd = window_choose_data_create(TREE_WINDOW, c, c->session); |
wcd = window_choose_data_create(TREE_WINDOW, c, c->session); |