[longomatch] Disable key pressed in the treeviews
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Disable key pressed in the treeviews
- Date: Wed, 24 Sep 2014 20:25:45 +0000 (UTC)
commit c784169e536ed5c2e627c69281ca30cb51f8572f
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun Sep 7 17:22:51 2014 +0200
Disable key pressed in the treeviews
.../Gui/TreeView/CategoriesFilterTreeView.cs | 5 +++++
LongoMatch.GUI/Gui/TreeView/FilterBaseView.cs | 7 +++++++
LongoMatch.GUI/Gui/TreeView/PlayListTreeView.cs | 5 -----
.../Gui/TreeView/PlayersFilterTreeView.cs | 7 +++++++
4 files changed, 19 insertions(+), 5 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/TreeView/CategoriesFilterTreeView.cs
b/LongoMatch.GUI/Gui/TreeView/CategoriesFilterTreeView.cs
index 4aea15f..548c583 100644
--- a/LongoMatch.GUI/Gui/TreeView/CategoriesFilterTreeView.cs
+++ b/LongoMatch.GUI/Gui/TreeView/CategoriesFilterTreeView.cs
@@ -128,6 +128,11 @@ namespace LongoMatch.Gui.Component
filter.Silent = false;
filter.Update ();
}
+
+ protected override bool OnKeyPressEvent (Gdk.EventKey evnt)
+ {
+ return false;
+ }
}
}
diff --git a/LongoMatch.GUI/Gui/TreeView/FilterBaseView.cs b/LongoMatch.GUI/Gui/TreeView/FilterBaseView.cs
index 1300f01..e9cf5c3 100644
--- a/LongoMatch.GUI/Gui/TreeView/FilterBaseView.cs
+++ b/LongoMatch.GUI/Gui/TreeView/FilterBaseView.cs
@@ -128,6 +128,13 @@ namespace LongoMatch.Gui.Component
protected abstract void UpdateSelection (TreeIter iter, bool active);
protected abstract void RenderColumn (TreeViewColumn column, CellRenderer cell, TreeModel
model, TreeIter iter);
protected abstract void Select(bool select_all);
+
+ protected override bool OnKeyPressEvent (EventKey evnt)
+ {
+ return false;
+ }
+
+
}
}
diff --git a/LongoMatch.GUI/Gui/TreeView/PlayListTreeView.cs b/LongoMatch.GUI/Gui/TreeView/PlayListTreeView.cs
index fbe32d9..74f373e 100644
--- a/LongoMatch.GUI/Gui/TreeView/PlayListTreeView.cs
+++ b/LongoMatch.GUI/Gui/TreeView/PlayListTreeView.cs
@@ -186,11 +186,6 @@ namespace LongoMatch.Gui.Component
(Model as TreeStore).Remove (ref selectedIter);
}
- protected override bool OnKeyPressEvent (EventKey evnt)
- {
- return false;
- }
-
void FillElementAndPlaylist (TreeIter iter, out Playlist playlist, out IPlaylistElement
element)
{
TreeIter parent;
diff --git a/LongoMatch.GUI/Gui/TreeView/PlayersFilterTreeView.cs
b/LongoMatch.GUI/Gui/TreeView/PlayersFilterTreeView.cs
index 6788a64..a789837 100644
--- a/LongoMatch.GUI/Gui/TreeView/PlayersFilterTreeView.cs
+++ b/LongoMatch.GUI/Gui/TreeView/PlayersFilterTreeView.cs
@@ -117,6 +117,13 @@ namespace LongoMatch.Gui.Component
UpdateSelection(localIter, select_all);
UpdateSelection(visitorIter, select_all);
}
+
+ protected override bool OnKeyPressEvent (Gdk.EventKey evnt)
+ {
+ return false;
+ }
+
+
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]