[longomatch/redesign3] Connect the event instead of relying in stetic for that
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/redesign3] Connect the event instead of relying in stetic for that
- Date: Thu, 18 Aug 2011 00:19:44 +0000 (UTC)
commit e86ea216915b59381d84ea0f1003c1eb79de1014
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Aug 18 00:16:46 2011 +0200
Connect the event instead of relying in stetic for that
LongoMatch/Gui/Component/PlayersTaggerWidget.cs | 1 +
...LongoMatch.Gui.Component.PlayersTaggerWidget.cs | 18 +++++++++---------
LongoMatch/gtk-gui/gui.stetic | 2 +-
3 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/LongoMatch/Gui/Component/PlayersTaggerWidget.cs b/LongoMatch/Gui/Component/PlayersTaggerWidget.cs
index 0fc4474..891d037 100644
--- a/LongoMatch/Gui/Component/PlayersTaggerWidget.cs
+++ b/LongoMatch/Gui/Component/PlayersTaggerWidget.cs
@@ -33,6 +33,7 @@ namespace LongoMatch.Gui.Component
public PlayersTaggerWidget (String subcategoryName, TeamTemplate template, List<PlayerTag> players) {
this.Build ();
+ editbutton.Clicked += OnEditClicked;
this.players = players;
this.template = template;
CategoryLabel.Markup = "<b>" + subcategoryName + "</b>";
diff --git a/LongoMatch/gtk-gui/LongoMatch.Gui.Component.PlayersTaggerWidget.cs b/LongoMatch/gtk-gui/LongoMatch.Gui.Component.PlayersTaggerWidget.cs
index 3f4946d..9240454 100644
--- a/LongoMatch/gtk-gui/LongoMatch.Gui.Component.PlayersTaggerWidget.cs
+++ b/LongoMatch/gtk-gui/LongoMatch.Gui.Component.PlayersTaggerWidget.cs
@@ -14,7 +14,7 @@ namespace LongoMatch.Gui.Component
private global::Gtk.Label playerslabel;
- private global::Gtk.Button button5;
+ private global::Gtk.Button editbutton;
private global::Gtk.Label CategoryLabel;
@@ -55,14 +55,14 @@ namespace LongoMatch.Gui.Component
global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.playerslabel]));
w2.Position = 1;
// Container child hbox1.Gtk.Box+BoxChild
- this.button5 = new global::Gtk.Button ();
- this.button5.CanFocus = true;
- this.button5.Name = "button5";
- this.button5.UseStock = true;
- this.button5.UseUnderline = true;
- this.button5.Label = "gtk-edit";
- this.hbox1.Add (this.button5);
- global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.button5]));
+ this.editbutton = new global::Gtk.Button ();
+ this.editbutton.CanFocus = true;
+ this.editbutton.Name = "editbutton";
+ this.editbutton.UseStock = true;
+ this.editbutton.UseUnderline = true;
+ this.editbutton.Label = "gtk-edit";
+ this.hbox1.Add (this.editbutton);
+ global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.editbutton]));
w3.Position = 2;
w3.Expand = false;
w3.Fill = false;
diff --git a/LongoMatch/gtk-gui/gui.stetic b/LongoMatch/gtk-gui/gui.stetic
index 556c3d5..0973a55 100644
--- a/LongoMatch/gtk-gui/gui.stetic
+++ b/LongoMatch/gtk-gui/gui.stetic
@@ -6376,7 +6376,7 @@ You can continue with the current capture, cancel it or save your project.
</packing>
</child>
<child>
- <widget class="Gtk.Button" id="button5">
+ <widget class="Gtk.Button" id="editbutton">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="UseStock">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]