[longomatch] Do not prompt twice to save a template
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Do not prompt twice to save a template
- Date: Fri, 10 Oct 2014 12:35:12 +0000 (UTC)
commit 562f920fad1c9a743a87f1107e58fd2079b0f331
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Oct 9 13:51:58 2014 +0200
Do not prompt twice to save a template
LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs | 2 +-
LongoMatch.GUI/Gui/Panel/TeamsTemplatesPanel.cs | 1 +
.../LongoMatch.Gui.Panel.TeamsTemplatesPanel.cs | 1 +
LongoMatch.GUI/gtk-gui/gui.stetic | 1 +
4 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs
b/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs
index bbf5658..a5ab6a2 100644
--- a/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs
+++ b/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs
@@ -69,7 +69,7 @@ namespace LongoMatch.Gui.Component
get {
return edited;
}
- protected set {
+ set {
edited = value;
savebutton.Sensitive = edited;
}
diff --git a/LongoMatch.GUI/Gui/Panel/TeamsTemplatesPanel.cs b/LongoMatch.GUI/Gui/Panel/TeamsTemplatesPanel.cs
index 86a330a..e769ab4 100644
--- a/LongoMatch.GUI/Gui/Panel/TeamsTemplatesPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/TeamsTemplatesPanel.cs
@@ -186,6 +186,7 @@ namespace LongoMatch.Gui.Panel
teamseditortreeview.Model.SetValue (itersDict[loadedTeam.Name], 0,
loadedTeam.Shield.Scale
(StyleConf.TeamsShieldIconSize, StyleConf.TeamsShieldIconSize).Value);
}
+ teamtemplateeditor1.Edited = false;
}
void PromptSave () {
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Panel.TeamsTemplatesPanel.cs
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Panel.TeamsTemplatesPanel.cs
index e4d9245..1cc4753 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Panel.TeamsTemplatesPanel.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Panel.TeamsTemplatesPanel.cs
@@ -281,6 +281,7 @@ namespace LongoMatch.Gui.Panel
this.teamtemplateeditor1 = new global::LongoMatch.Gui.Component.TeamTemplateEditor ();
this.teamtemplateeditor1.Events = ((global::Gdk.EventMask)(256));
this.teamtemplateeditor1.Name = "teamtemplateeditor1";
+ this.teamtemplateeditor1.Edited = false;
this.hbox1.Add (this.teamtemplateeditor1);
global::Gtk.Box.BoxChild w28 = ((global::Gtk.Box.BoxChild)(this.hbox1
[this.teamtemplateeditor1]));
w28.Position = 1;
diff --git a/LongoMatch.GUI/gtk-gui/gui.stetic b/LongoMatch.GUI/gtk-gui/gui.stetic
index d53e81e..d7e81c6 100644
--- a/LongoMatch.GUI/gtk-gui/gui.stetic
+++ b/LongoMatch.GUI/gtk-gui/gui.stetic
@@ -7794,6 +7794,7 @@ You can continue with the current capture, cancel it or save your project.
<widget class="LongoMatch.Gui.Component.TeamTemplateEditor" id="teamtemplateeditor1">
<property name="MemberName" />
<property name="Events">ButtonPressMask</property>
+ <property name="Edited">False</property>
</widget>
<packing>
<property name="Position">1</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]