summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gnome-speaker-setup.vala16
1 files changed, 12 insertions, 4 deletions
diff --git a/gnome-speaker-setup.vala b/gnome-speaker-setup.vala
index 1740357..7fff88b 100644
--- a/gnome-speaker-setup.vala
+++ b/gnome-speaker-setup.vala
@@ -60,7 +60,7 @@ public class ChannelControl : VBox {
image = new Image.from_icon_name("audio-volume-medium", IconSize.DIALOG);
pack_start(image, false, false, 0);
- label = new Label(p.to_pretty_string());
+ label = new Label(pretty_position());
pack_start(label, false, false, 0);
test_button = new Button.with_label("Test");
@@ -83,7 +83,7 @@ public class ChannelControl : VBox {
else {
Canberra.Proplist.create(out p);
p.sets(PROP_MEDIA_ROLE, "test");
- p.sets(PROP_MEDIA_NAME, position.to_pretty_string());
+ p.sets(PROP_MEDIA_NAME, pretty_position());
p.sets(PROP_CANBERRA_FORCE_CHANNEL, position.to_string());
p.sets(PROP_CANBERRA_ENABLE, "1");
@@ -107,6 +107,14 @@ public class ChannelControl : VBox {
update_button();
}
+ public unowned string pretty_position() {
+
+ if (position == ChannelPosition.LFE)
+ return "Subwoofer";
+
+ return position.to_pretty_string();
+ }
+
public void update_button() {
test_button.set_label(playing ? "Stop" : "Test");
}
@@ -301,8 +309,8 @@ public class SpeakerSetupWindow : Window {
channel_table = new Table(3, 5, true);
channel_notebook.append_page(channel_table, null);
- channel_table.set_col_spacings(6);
- channel_table.set_row_spacings(36);
+ channel_table.set_col_spacings(12);
+ channel_table.set_row_spacings(12);
channel_table.set_border_width(36);
create_channel_controls();