diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-12-13 11:46:24 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-12-13 16:30:37 +0100 |
commit | 5942e8483b712f1c83be625856ff7ee26ebc3898 (patch) | |
tree | ee6970233fafa1ae94bde051e1deacd31b6d08d7 /src | |
parent | caf68ab21e373594866ef2b26736d3ae02ac6659 (diff) | |
download | pa-sink-ctl-5942e8483b712f1c83be625856ff7ee26ebc3898.tar.gz pa-sink-ctl-5942e8483b712f1c83be625856ff7ee26ebc3898.tar.bz2 pa-sink-ctl-5942e8483b712f1c83be625856ff7ee26ebc3898.zip |
interface: Rename print_sink_list to interface_redraw
Diffstat (limited to 'src')
-rw-r--r-- | src/command.c | 4 | ||||
-rw-r--r-- | src/interface.c | 5 | ||||
-rw-r--r-- | src/interface.h | 2 | ||||
-rw-r--r-- | 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; |