[longomatch] Make the tagger dialog modal an centered
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Make the tagger dialog modal an centered
- Date: Tue, 6 Aug 2013 20:05:11 +0000 (UTC)
commit 7c77af57019be16fc6e7f583dbae2241dc8e0a19
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Aug 6 20:39:13 2013 +0200
Make the tagger dialog modal an centered
.../gtk-gui/LongoMatch.Gui.Dialog.TaggerDialog.cs | 57 ++++-----
LongoMatch.GUI/gtk-gui/gui.stetic | 135 +++++++++-----------
2 files changed, 86 insertions(+), 106 deletions(-)
---
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.TaggerDialog.cs
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.TaggerDialog.cs
index d251154..cc23d88 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.TaggerDialog.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.TaggerDialog.cs
@@ -4,7 +4,6 @@ namespace LongoMatch.Gui.Dialog
{
public partial class TaggerDialog
{
- private global::Gtk.ScrolledWindow scrolledwindow3;
private global::Gtk.VBox mainvbox;
private global::Gtk.HBox hbox;
private global::Gtk.Notebook tagsnotebook;
@@ -24,19 +23,13 @@ namespace LongoMatch.Gui.Dialog
this.Title = global::Mono.Unix.Catalog.GetString ("Tag play");
this.Icon = global::Stetic.IconLoader.LoadIcon (this, "longomatch",
global::Gtk.IconSize.Menu);
this.WindowPosition = ((global::Gtk.WindowPosition)(4));
+ this.Modal = true;
+ this.Gravity = ((global::Gdk.Gravity)(5));
// Internal child LongoMatch.Gui.Dialog.TaggerDialog.VBox
global::Gtk.VBox w1 = this.VBox;
w1.Name = "dialog1_VBox";
w1.BorderWidth = ((uint)(2));
// Container child dialog1_VBox.Gtk.Box+BoxChild
- this.scrolledwindow3 = new global::Gtk.ScrolledWindow ();
- this.scrolledwindow3.CanFocus = true;
- this.scrolledwindow3.Name = "scrolledwindow3";
- this.scrolledwindow3.ShadowType = ((global::Gtk.ShadowType)(1));
- // Container child scrolledwindow3.Gtk.Container+ContainerChild
- global::Gtk.Viewport w2 = new global::Gtk.Viewport ();
- w2.ShadowType = ((global::Gtk.ShadowType)(0));
- // Container child GtkViewport.Gtk.Container+ContainerChild
this.mainvbox = new global::Gtk.VBox ();
this.mainvbox.Name = "mainvbox";
// Container child mainvbox.Gtk.Box+BoxChild
@@ -60,8 +53,8 @@ namespace LongoMatch.Gui.Dialog
this.tagsnotebook.SetTabLabel (this.taggerwidget1, this.label1);
this.label1.ShowAll ();
this.hbox.Add (this.tagsnotebook);
- global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox
[this.tagsnotebook]));
- w4.Position = 0;
+ global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox
[this.tagsnotebook]));
+ w3.Position = 0;
// Container child hbox.Gtk.Box+BoxChild
this.playersnotebook = new global::Gtk.Notebook ();
this.playersnotebook.CanFocus = true;
@@ -79,30 +72,28 @@ namespace LongoMatch.Gui.Dialog
this.playersnotebook.SetTabLabel (this.playersbox, this.label2);
this.label2.ShowAll ();
this.hbox.Add (this.playersnotebook);
- global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.hbox
[this.playersnotebook]));
- w6.Position = 1;
+ global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox
[this.playersnotebook]));
+ w5.Position = 1;
this.mainvbox.Add (this.hbox);
- global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.mainvbox [this.hbox]));
- w7.Position = 0;
- w7.Expand = false;
+ global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.mainvbox [this.hbox]));
+ w6.Position = 0;
+ w6.Expand = false;
// Container child mainvbox.Gtk.Box+BoxChild
this.coordstagger = new global::LongoMatch.Gui.Component.PlaysCoordinatesTagger ();
this.coordstagger.Events = ((global::Gdk.EventMask)(256));
this.coordstagger.Name = "coordstagger";
this.mainvbox.Add (this.coordstagger);
- global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.mainvbox
[this.coordstagger]));
- w8.Position = 1;
- w2.Add (this.mainvbox);
- this.scrolledwindow3.Add (w2);
- w1.Add (this.scrolledwindow3);
- global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(w1
[this.scrolledwindow3]));
- w11.Position = 0;
+ global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.mainvbox
[this.coordstagger]));
+ w7.Position = 1;
+ w1.Add (this.mainvbox);
+ global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(w1 [this.mainvbox]));
+ w8.Position = 0;
// Internal child LongoMatch.Gui.Dialog.TaggerDialog.ActionArea
- global::Gtk.HButtonBox w12 = this.ActionArea;
- w12.Name = "dialog1_ActionArea";
- w12.Spacing = 6;
- w12.BorderWidth = ((uint)(5));
- w12.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
+ global::Gtk.HButtonBox w9 = this.ActionArea;
+ w9.Name = "dialog1_ActionArea";
+ w9.Spacing = 6;
+ w9.BorderWidth = ((uint)(5));
+ w9.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
this.buttonOk = new global::Gtk.Button ();
this.buttonOk.CanDefault = true;
@@ -112,14 +103,14 @@ namespace LongoMatch.Gui.Dialog
this.buttonOk.UseUnderline = true;
this.buttonOk.Label = "gtk-ok";
this.AddActionWidget (this.buttonOk, -5);
- global::Gtk.ButtonBox.ButtonBoxChild w13 =
((global::Gtk.ButtonBox.ButtonBoxChild)(w12 [this.buttonOk]));
- w13.Expand = false;
- w13.Fill = false;
+ global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w9
[this.buttonOk]));
+ w10.Expand = false;
+ w10.Fill = false;
if ((this.Child != null)) {
this.Child.ShowAll ();
}
- this.DefaultWidth = 1073;
- this.DefaultHeight = 709;
+ this.DefaultWidth = 644;
+ this.DefaultHeight = 569;
this.Show ();
}
}
diff --git a/LongoMatch.GUI/gtk-gui/gui.stetic b/LongoMatch.GUI/gtk-gui/gui.stetic
index 453bdf2..64bc25e 100644
--- a/LongoMatch.GUI/gtk-gui/gui.stetic
+++ b/LongoMatch.GUI/gtk-gui/gui.stetic
@@ -5659,6 +5659,8 @@ Show-><b> S</b>
<property name="Title" translatable="yes">Tag play</property>
<property name="Icon">stock:longomatch Menu</property>
<property name="WindowPosition">CenterOnParent</property>
+ <property name="Modal">True</property>
+ <property name="Gravity">Center</property>
<property name="Buttons">1</property>
<property name="HelpButton">False</property>
<child internal-child="VBox">
@@ -5666,102 +5668,89 @@ Show-><b> S</b>
<property name="MemberName" />
<property name="BorderWidth">2</property>
<child>
- <widget class="Gtk.ScrolledWindow" id="scrolledwindow3">
+ <widget class="Gtk.VBox" id="mainvbox">
<property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="ShadowType">In</property>
<child>
- <widget class="Gtk.Viewport" id="GtkViewport">
+ <widget class="Gtk.HBox" id="hbox">
<property name="MemberName" />
- <property name="ShadowType">None</property>
+ <property name="Spacing">6</property>
<child>
- <widget class="Gtk.VBox" id="mainvbox">
+ <widget class="Gtk.Notebook" id="tagsnotebook">
<property name="MemberName" />
+ <property name="CanFocus">True</property>
+ <property name="CurrentPage">0</property>
+ <child>
+ <widget class="LongoMatch.Gui.Component.TaggerWidget" id="taggerwidget1">
+ <property name="MemberName" />
+ <property name="Events">ButtonPressMask</property>
+ </widget>
+ </child>
<child>
- <widget class="Gtk.HBox" id="hbox">
+ <widget class="Gtk.Label" id="label1">
+ <property name="MemberName" />
+ <property name="LabelProp" translatable="yes">Tags</property>
+ </widget>
+ <packing>
+ <property name="type">tab</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Notebook" id="playersnotebook">
+ <property name="MemberName" />
+ <property name="CanFocus">True</property>
+ <property name="CurrentPage">0</property>
+ <child>
+ <widget class="Gtk.VBox" id="playersbox">
<property name="MemberName" />
<property name="Spacing">6</property>
<child>
- <widget class="Gtk.Notebook" id="tagsnotebook">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="CurrentPage">0</property>
- <child>
- <widget class="LongoMatch.Gui.Component.TaggerWidget" id="taggerwidget1">
- <property name="MemberName" />
- <property name="Events">ButtonPressMask</property>
- </widget>
- </child>
- <child>
- <widget class="Gtk.Label" id="label1">
- <property name="MemberName" />
- <property name="LabelProp" translatable="yes">Tags</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- </packing>
+ <placeholder />
</child>
<child>
- <widget class="Gtk.Notebook" id="playersnotebook">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="CurrentPage">0</property>
- <child>
- <widget class="Gtk.VBox" id="playersbox">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- </widget>
- </child>
- <child>
- <widget class="Gtk.Label" id="label2">
- <property name="MemberName" />
- <property name="LabelProp" translatable="yes">Players</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- </packing>
+ <placeholder />
+ </child>
+ <child>
+ <placeholder />
</child>
</widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- </packing>
</child>
<child>
- <widget class="LongoMatch.Gui.Component.PlaysCoordinatesTagger" id="coordstagger">
+ <widget class="Gtk.Label" id="label2">
<property name="MemberName" />
- <property name="Events">ButtonPressMask</property>
+ <property name="LabelProp" translatable="yes">Players</property>
</widget>
<packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
+ <property name="type">tab</property>
</packing>
</child>
</widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">True</property>
+ </packing>
</child>
</widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">False</property>
+ <property name="Expand">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="LongoMatch.Gui.Component.PlaysCoordinatesTagger" id="coordstagger">
+ <property name="MemberName" />
+ <property name="Events">ButtonPressMask</property>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">True</property>
+ </packing>
</child>
</widget>
<packing>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]