summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/command.c4
-rw-r--r--src/interface.c5
-rw-r--r--src/interface.h2
-rw-r--r--src/pa-sink-ctl.c6
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;