[longomatch] Add Offset label in the VideoFileInfo.
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Add Offset label in the VideoFileInfo.
- Date: Wed, 18 Mar 2015 14:44:13 +0000 (UTC)
commit c4467ac2e11fdcea7ffe38c95192e2f836f0e4f2
Author: Julien Moutte <julien fluendo com>
Date: Mon Mar 16 12:42:24 2015 +0100
Add Offset label in the VideoFileInfo.
LongoMatch.GUI/Gui/Component/VideoFileInfo.cs | 2 +
.../LongoMatch.Gui.Component.VideoFileInfo.cs | 39 ++++++++++----------
LongoMatch.GUI/gtk-gui/gui.stetic | 20 +++++-----
3 files changed, 32 insertions(+), 29 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/VideoFileInfo.cs b/LongoMatch.GUI/Gui/Component/VideoFileInfo.cs
index 60d31ef..021d50a 100644
--- a/LongoMatch.GUI/Gui/Component/VideoFileInfo.cs
+++ b/LongoMatch.GUI/Gui/Component/VideoFileInfo.cs
@@ -88,6 +88,8 @@ namespace LongoMatch.Gui.Component
mediaFile.AudioCodec);
containerlabel.Text = String.Format ("{0}: {1}", Catalog.GetString ("Container"),
mediaFile.Container);
+ offsetlabel.Text = String.Format ("{0}: {1}", Catalog.GetString ("Offset"),
+ mediaFile.Offset.ToMSecondsString ());
}
void HandleButtonPressEvent (object o, Gtk.ButtonPressEventArgs args)
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.VideoFileInfo.cs
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.VideoFileInfo.cs
index fda08a4..fa1a338 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.VideoFileInfo.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.VideoFileInfo.cs
@@ -24,10 +24,10 @@ namespace LongoMatch.Gui.Component
private global::Gtk.Label formatlabel;
- private global::Gtk.Label label9;
-
private global::Gtk.Label namelabel;
+ private global::Gtk.Label offsetlabel;
+
private global::Gtk.Label videolabel;
private global::Gtk.HSeparator hseparator2;
@@ -59,6 +59,7 @@ namespace LongoMatch.Gui.Component
w1.Fill = false;
// Container child hbox1.Gtk.Box+BoxChild
this.table1 = new global::Gtk.Table (((uint)(4)), ((uint)(2)), true);
+ this.table1.Name = "table1";
this.table1.RowSpacing = ((uint)(6));
this.table1.ColumnSpacing = ((uint)(6));
// Container child table1.Gtk.Table+TableChild
@@ -67,8 +68,8 @@ namespace LongoMatch.Gui.Component
this.audiolabel.Xalign = 0F;
this.table1.Add (this.audiolabel);
global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table1
[this.audiolabel]));
- w2.TopAttach = ((uint)(2));
- w2.BottomAttach = ((uint)(3));
+ w2.TopAttach = ((uint)(3));
+ w2.BottomAttach = ((uint)(4));
w2.LeftAttach = ((uint)(1));
w2.RightAttach = ((uint)(2));
w2.XOptions = ((global::Gtk.AttachOptions)(4));
@@ -110,30 +111,30 @@ namespace LongoMatch.Gui.Component
this.formatlabel.Xalign = 0F;
this.table1.Add (this.formatlabel);
global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1
[this.formatlabel]));
- w6.TopAttach = ((uint)(1));
- w6.BottomAttach = ((uint)(2));
+ w6.TopAttach = ((uint)(2));
+ w6.BottomAttach = ((uint)(3));
w6.LeftAttach = ((uint)(1));
w6.RightAttach = ((uint)(2));
w6.XOptions = ((global::Gtk.AttachOptions)(4));
w6.YOptions = ((global::Gtk.AttachOptions)(4));
// Container child table1.Gtk.Table+TableChild
- this.label9 = new global::Gtk.Label ();
- this.label9.Name = "label9";
- this.label9.Xalign = 0F;
- this.table1.Add (this.label9);
- global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1
[this.label9]));
- w7.TopAttach = ((uint)(3));
- w7.BottomAttach = ((uint)(4));
- w7.LeftAttach = ((uint)(1));
- w7.RightAttach = ((uint)(2));
- w7.XOptions = ((global::Gtk.AttachOptions)(4));
- w7.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
this.namelabel = new global::Gtk.Label ();
this.namelabel.Name = "namelabel";
this.namelabel.Xalign = 0F;
this.table1.Add (this.namelabel);
- global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table1
[this.namelabel]));
+ global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1
[this.namelabel]));
+ w7.XOptions = ((global::Gtk.AttachOptions)(4));
+ w7.YOptions = ((global::Gtk.AttachOptions)(4));
+ // Container child table1.Gtk.Table+TableChild
+ this.offsetlabel = new global::Gtk.Label ();
+ this.offsetlabel.Name = "offsetlabel";
+ this.offsetlabel.Xalign = 0F;
+ this.table1.Add (this.offsetlabel);
+ global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table1
[this.offsetlabel]));
+ w8.TopAttach = ((uint)(1));
+ w8.BottomAttach = ((uint)(2));
+ w8.LeftAttach = ((uint)(1));
+ w8.RightAttach = ((uint)(2));
w8.XOptions = ((global::Gtk.AttachOptions)(4));
w8.YOptions = ((global::Gtk.AttachOptions)(4));
// Container child table1.Gtk.Table+TableChild
diff --git a/LongoMatch.GUI/gtk-gui/gui.stetic b/LongoMatch.GUI/gtk-gui/gui.stetic
index e4bd2d5..0e168cf 100644
--- a/LongoMatch.GUI/gtk-gui/gui.stetic
+++ b/LongoMatch.GUI/gtk-gui/gui.stetic
@@ -11393,8 +11393,8 @@ To avoid this, and to enjoy many additional functional benefits, we encourage yo
<property name="Xalign">0</property>
</widget>
<packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
+ <property name="TopAttach">3</property>
+ <property name="BottomAttach">4</property>
<property name="LeftAttach">1</property>
<property name="RightAttach">2</property>
<property name="AutoSize">True</property>
@@ -11472,8 +11472,8 @@ To avoid this, and to enjoy many additional functional benefits, we encourage yo
<property name="Xalign">0</property>
</widget>
<packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
+ <property name="TopAttach">2</property>
+ <property name="BottomAttach">3</property>
<property name="LeftAttach">1</property>
<property name="RightAttach">2</property>
<property name="AutoSize">True</property>
@@ -11488,15 +11488,11 @@ To avoid this, and to enjoy many additional functional benefits, we encourage yo
</packing>
</child>
<child>
- <widget class="Gtk.Label" id="label9">
+ <widget class="Gtk.Label" id="namelabel">
<property name="MemberName" />
<property name="Xalign">0</property>
</widget>
<packing>
- <property name="TopAttach">3</property>
- <property name="BottomAttach">4</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
<property name="AutoSize">True</property>
<property name="XOptions">Fill</property>
<property name="YOptions">Fill</property>
@@ -11509,11 +11505,15 @@ To avoid this, and to enjoy many additional functional benefits, we encourage yo
</packing>
</child>
<child>
- <widget class="Gtk.Label" id="namelabel">
+ <widget class="Gtk.Label" id="offsetlabel">
<property name="MemberName" />
<property name="Xalign">0</property>
</widget>
<packing>
+ <property name="TopAttach">1</property>
+ <property name="BottomAttach">2</property>
+ <property name="LeftAttach">1</property>
+ <property name="RightAttach">2</property>
<property name="AutoSize">True</property>
<property name="XOptions">Fill</property>
<property name="YOptions">Fill</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]