summaryrefslogtreecommitdiff
path: root/mediainfo
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2013-09-09 18:48:10 +0200
committerStefan Sauer <ensonic@users.sf.net>2013-09-15 19:50:33 +0200
commit3c5032f36c9b94d73e3b16f40149f3c3fca84621 (patch)
treedc4b86ff2c2664165570ae6989e92f3c37e97bf3 /mediainfo
parent533702a0ede9376501d31b04f60ab84b89c6630a (diff)
mi-info: reshuffle container widgets
Prepare for handling nested containers.
Diffstat (limited to 'mediainfo')
-rw-r--r--mediainfo/src/mi-info.vala44
1 files changed, 22 insertions, 22 deletions
diff --git a/mediainfo/src/mi-info.vala b/mediainfo/src/mi-info.vala
index 6290a87..5561550 100644
--- a/mediainfo/src/mi-info.vala
+++ b/mediainfo/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>");