[PATCH 06/12] perf, sched migration: Fix key bindings

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Frederic Weisbecker
Date: Sunday, August 1, 2010 - 5:13 pm

From: Nikhil Rao <ncrao@google.com>

EVT_KEY_DOWN and EVT_LEFT_DOWN events are not bound to the RootFrame
event handler. As a result, zoom/scroll via keyboard events do not
work. This patch adds the missing bindings.

Signed-off-by: Nikhil Rao <ncrao@google.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Tom Zanussi <tzanussi@gmail.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
---
 tools/perf/scripts/python/sched-migration.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tools/perf/scripts/python/sched-migration.py b/tools/perf/scripts/python/sched-migration.py
index e9898c5..8b8fb7c 100644
--- a/tools/perf/scripts/python/sched-migration.py
+++ b/tools/perf/scripts/python/sched-migration.py
@@ -54,6 +54,8 @@ class RootFrame(wx.Frame):
 		self.scroll_panel.Bind(wx.EVT_KEY_DOWN, self.on_key_press)
 		self.scroll_panel.Bind(wx.EVT_LEFT_DOWN, self.on_mouse_down)
 		self.scroll.Bind(wx.EVT_PAINT, self.on_paint)
+		self.scroll.Bind(wx.EVT_KEY_DOWN, self.on_key_press)
+		self.scroll.Bind(wx.EVT_LEFT_DOWN, self.on_mouse_down)
 
 		self.scroll.Fit()
 		self.Fit()
-- 
1.6.2.3

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[GIT PULL] instrumentation updates, Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 02/12] tracing: Drop cpparg() macro, Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 03/12] perf: New migration tool overview, Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 04/12] perf, sched migration: Handle ignored migrat ..., Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 05/12] perf, sched migration: Ignore unhandled task ..., Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 06/12] perf, sched migration: Fix key bindings, Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 07/12] perf, sched migration: Parameterize cpu heig ..., Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 08/12] perf, sched migration: Make it vertically sc ..., Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 09/12] perf, sched migration: Make the GUI class cl ..., Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 10/12] perf, sched migration: Librarize the GUI class, Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 11/12] perf, sched migration: Librarize task states ..., Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 12/12] x86,mmiotrace: Add support for tracing STOS ..., Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
Re: [GIT PULL] instrumentation updates, Ingo Molnar, (Sun Aug 1, 11:28 pm)