[longomatch] Disable focus in child widgets



commit 81d22b9170146c94642ed23815ac50dd7eec5b44
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Apr 15 11:22:18 2014 +0200

    Disable focus in child widgets

 .../Gui/Component/PlaysSelectionWidget.cs          |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/PlaysSelectionWidget.cs 
b/LongoMatch.GUI/Gui/Component/PlaysSelectionWidget.cs
index 96c4dd1..8acbd8f 100644
--- a/LongoMatch.GUI/Gui/Component/PlaysSelectionWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/PlaysSelectionWidget.cs
@@ -107,6 +107,18 @@ namespace LongoMatch.Gui.Component
                }
                #endregion
                
+               void DisableFocus (Container w) {
+                       w.CanFocus = false;
+                       foreach (Widget child in w.AllChildren) {
+                               Console.WriteLine (child);
+                               if (child is Container) {
+                                       DisableFocus (child as Container);
+                               } else {
+                                       child.CanFocus = false;
+                               }
+                       }
+               }
+
                void AddFilters() {
                        ScrolledWindow s1 = new ScrolledWindow();
                        ScrolledWindow s2 = new ScrolledWindow();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]