[longomatch/newui: 148/157] Make sure that the tagproperties widget is not sensitive at creation time, it should only be enabled
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/newui: 148/157] Make sure that the tagproperties widget is not sensitive at creation time, it should only be enabled
- Date: Mon, 1 Sep 2014 09:53:49 +0000 (UTC)
commit 6cdd71eb8a2fed6f331cdeda83a394ee87f4a76d
Author: Julien Moutte <julien fluendo com>
Date: Fri Aug 29 18:09:36 2014 +0200
Make sure that the tagproperties widget is not sensitive at creation time, it should only be enabled when
something gets selected.
LongoMatch.GUI/Gui/Component/DashboardWidget.cs | 3 +++
.../LongoMatch.Gui.Component.DashboardWidget.cs | 1 +
LongoMatch.GUI/gtk-gui/gui.stetic | 1 +
3 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/DashboardWidget.cs b/LongoMatch.GUI/Gui/Component/DashboardWidget.cs
index bccba45..87c3b59 100644
--- a/LongoMatch.GUI/Gui/Component/DashboardWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/DashboardWidget.cs
@@ -82,6 +82,9 @@ namespace LongoMatch.Gui.Component
Edited = false;
Mode = TagMode.Predefined;
FitMode = FitMode.Original;
+
+ // Initialize to a sane default value.
+ tagproperties.Sensitive = false;
}
protected override void OnDestroyed ()
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.DashboardWidget.cs
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.DashboardWidget.cs
index 0241628..8848b04 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.DashboardWidget.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.DashboardWidget.cs
@@ -532,6 +532,7 @@ namespace LongoMatch.Gui.Component
w104.ShadowType = ((global::Gtk.ShadowType)(0));
// Container child GtkViewport1.Gtk.Container+ContainerChild
this.tagproperties = new global::LongoMatch.Gui.Component.CategoryProperties ();
+ this.tagproperties.Sensitive = false;
this.tagproperties.Events = ((global::Gdk.EventMask)(256));
this.tagproperties.Name = "tagproperties";
this.tagproperties.Edited = false;
diff --git a/LongoMatch.GUI/gtk-gui/gui.stetic b/LongoMatch.GUI/gtk-gui/gui.stetic
index cefa69a..f7f5d93 100644
--- a/LongoMatch.GUI/gtk-gui/gui.stetic
+++ b/LongoMatch.GUI/gtk-gui/gui.stetic
@@ -565,6 +565,7 @@
<child>
<widget class="LongoMatch.Gui.Component.CategoryProperties"
id="tagproperties">
<property name="MemberName" />
+ <property name="Sensitive">False</property>
<property name="Events">ButtonPressMask</property>
<property name="Edited">False</property>
</widget>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]