From 5942e8483b712f1c83be625856ff7ee26ebc3898 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 13 Dec 2011 11:46:24 +0100 Subject: interface: Rename print_sink_list to interface_redraw --- src/command.c | 4 ++-- src/interface.c | 5 +++-- src/interface.h | 2 +- src/pa-sink-ctl.c | 6 +++--- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/command.c b/src/command.c index 3abe744..52af20a 100644 --- a/src/command.c +++ b/src/command.c @@ -66,7 +66,7 @@ up(struct context *ctx, int key) } else if (ctx->chooser_input >= 0) --ctx->chooser_input; - print_sink_list(ctx); + interface_redraw(ctx); } static void @@ -82,7 +82,7 @@ down(struct context *ctx, int key) } else if (ctx->chooser_input < (sink_input_len(ctx, sink) - 1)) ++ctx->chooser_input; - print_sink_list(ctx); + interface_redraw(ctx); } static void diff --git a/src/interface.c b/src/interface.c index 54859f0..a744cfd 100644 --- a/src/interface.c +++ b/src/interface.c @@ -60,7 +60,8 @@ interface_resize(gpointer data) /* NULL := display old status */ interface_set_status(ctx, NULL); - print_sink_list(ctx); + interface_redraw(ctx); + return TRUE; } @@ -140,7 +141,7 @@ set_max_name_len(struct context *ctx) } void -print_sink_list(struct context *ctx) +interface_redraw(struct context *ctx) { struct sink_info *sink; gint i = -1; diff --git a/src/interface.h b/src/interface.h index da99612..84a794b 100644 --- a/src/interface.h +++ b/src/interface.h @@ -29,7 +29,7 @@ struct context; void -print_sink_list(struct context *ctx); +interface_redraw(struct context *ctx); void interface_init(struct context *ctx); diff --git a/src/pa-sink-ctl.c b/src/pa-sink-ctl.c index 3b0a827..b4e3ef4 100644 --- a/src/pa-sink-ctl.c +++ b/src/pa-sink-ctl.c @@ -66,7 +66,7 @@ sink_input_info_cb(pa_context *c, const pa_sink_input_info *i, } if (is_last) { - print_sink_list(ctx); + interface_redraw(ctx); return; } @@ -150,7 +150,7 @@ sink_info_cb(pa_context *c, const pa_sink_info *i, } if (is_last) { - print_sink_list(ctx); + interface_redraw(ctx); return; } @@ -215,7 +215,7 @@ subscribe_cb(pa_context *c, pa_subscription_event_type_t t, default: return; } - print_sink_list(ctx); + interface_redraw(ctx); break; default: break; -- cgit