diff options
author | Stefan Sauer <ensonic@users.sf.net> | 2013-09-09 18:48:10 +0200 |
---|---|---|
committer | Stefan Sauer <ensonic@users.sf.net> | 2013-09-09 18:48:10 +0200 |
commit | 7b040790f66c1ca66b716d49538c2c640a6635db (patch) | |
tree | fdb3fd62a2bf57ead9f803ab601a6f309f5f7e31 | |
parent | eb8576ac9c18fdc24fc0bb741e63f41b2e14a831 (diff) |
mi-info: reshuffle container widgets
Prepare for handling nested containers.
-rw-r--r-- | src/mi-info.vala | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/mi-info.vala b/src/mi-info.vala index a03cf3d..6e89a2c 100644 --- a/src/mi-info.vala +++ b/src/mi-info.vala @@ -157,34 +157,13 @@ public class MediaInfo.Info : Box table = new Table (8, 3, false); info_area.add_with_viewport (table); - /* TODO: also use tabs for containers - * - this is needed for e.g. mpeg-ts or mp3 inside ape - * - we should move duration and mime-type out of the tabs - */ label = new Label (null); label.set_markup("<b>Container</b>"); label.set_alignment (0.0f, 0.5f); - table.attach (label, 0, 3, row, row+1, fill_exp, 0, 0, 1); - row++; + table.attach (label, 0, 2, row, row+1, fill_exp, 0, 0, 1); icon_image = new Image (); table.attach (icon_image, 2, 3, row, row+3, fill, 0, 0, 0); - - container_caps = new Label (null); - container_caps.set_alignment (0.0f, 0.5f); - container_caps.set_selectable (true); - container_caps.set_use_markup (true); - table.attach (container_caps, 0, 2, row, row+1, fill_exp, 0, 3, 1); - row++; - - label = new Label ("Format:"); - label.set_alignment (1.0f, 0.5f); - table.attach (label, 0, 1, row, row+1, fill, 0, 0, 0); - container_name = new Label (null); - container_name.set_alignment (0.0f, 0.5f); - container_name.set_selectable (true); - container_name.set_use_markup (true); - table.attach (container_name, 1, 2, row, row+1, fill_exp, 0, 3, 1); row++; label = new Label ("Mime-Type:"); @@ -205,6 +184,27 @@ public class MediaInfo.Info : Box table.attach (duration, 1, 2, row, row+1, fill_exp, 0, 3, 1); row++; + /* TODO: also use tabs for containers + * - this is needed for e.g. mpeg-ts or mp3 inside ape + */ + container_caps = new Label (null); + container_caps.set_alignment (0.0f, 0.5f); + container_caps.set_selectable (true); + container_caps.set_use_markup (true); + table.attach (container_caps, 0, 2, row, row+1, fill_exp, 0, 3, 1); + row++; + + label = new Label ("Format:"); + label.set_alignment (1.0f, 0.5f); + table.attach (label, 0, 1, row, row+1, fill, 0, 0, 0); + container_name = new Label (null); + container_name.set_alignment (0.0f, 0.5f); + container_name.set_selectable (true); + container_name.set_use_markup (true); + table.attach (container_name, 1, 2, row, row+1, fill_exp, 0, 3, 1); + row++; + + if (compact_mode) { label = new Label (null); label.set_markup("<b>Streams</b>"); |