info: show stream tags as multiline label

This commit is contained in:
Stefan Sauer 2010-11-04 10:46:43 +02:00
parent 1d389b9724
commit b652b0c2f8

View file

@ -287,6 +287,20 @@ public class MediaInfo.Info : VBox
row++;
}
if ((s = (Structure)sinfo.get_tags ()) != null) {
// FIXME: use treeview inside scrolled window
label = new Label ("Tags:");
label.set_alignment (1.0f, 0.0f);
table.attach (label, 0, 1, row, row+1, fill, fill, 0, 0);
str = s.to_string ();
str = str[8:-1].compress().replace(",","\n");
label = new Label(str);
label.set_ellipsize (Pango.EllipsizeMode.END);
label.set_alignment (0.0f, 0.5f);
table.attach (label, 1, 2, row, row+1, fill_exp, 0, 0, 1);
row++;
}
video_streams.append_page (table, new Label (@"video $i"));
}
video_streams.show_all();
@ -363,6 +377,20 @@ public class MediaInfo.Info : VBox
row++;
}
if ((s = (Structure)sinfo.get_tags ()) != null) {
// FIXME: use treeview inside scrolled window
label = new Label ("Tags:");
label.set_alignment (1.0f, 0.0f);
table.attach (label, 0, 1, row, row+1, fill, fill, 0, 0);
str = s.to_string ();
str = str[8:-1].compress().replace(",","\n");
label = new Label(str);
label.set_ellipsize (Pango.EllipsizeMode.END);
label.set_alignment (0.0f, 0.5f);
table.attach (label, 1, 2, row, row+1, fill_exp, 0, 0, 1);
row++;
}
audio_streams.append_page (table, new Label (@"audio $i"));
}
audio_streams.show_all();