diff options
| author | Lennart Poettering <lennart@poettering.net> | 2010-02-21 02:40:03 +0100 | 
|---|---|---|
| committer | Lennart Poettering <lennart@poettering.net> | 2010-02-21 02:40:03 +0100 | 
| commit | cf0952198ee50bbc52f9c691c4abafccc23bb827 (patch) | |
| tree | 3daf3805f72a78dcec920e707d95c79b177c56ab | |
| parent | 7ff89def9693046ef3112d5d13c229a89f3a62c2 (diff) | |
| -rw-r--r-- | gnome-speaker-setup.vala | 16 | 
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();  | 
