[nemiver/gtk2-branch] Allow selecting current frame twice consecutively
- From: Dodji Seketeli <dodji src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nemiver/gtk2-branch] Allow selecting current frame twice consecutively
- Date: Sun, 20 Nov 2011 15:25:02 +0000 (UTC)
commit e636b90de96571b37a1dc74787df2b88ce32f820
Author: Dodji Seketeli <dodji gnome org>
Date: Sun Oct 2 20:54:32 2011 +0200
Allow selecting current frame twice consecutively
* src/persp/dbgperspective/nmv-dbg-perspective.cc
(DBGPerspective::on_frame_selected_signal): If the current frame
was previously selected, just set the "where-marker" again.
src/persp/dbgperspective/nmv-dbg-perspective.cc | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/src/persp/dbgperspective/nmv-dbg-perspective.cc b/src/persp/dbgperspective/nmv-dbg-perspective.cc
index cd954bd..a5255ef 100644
--- a/src/persp/dbgperspective/nmv-dbg-perspective.cc
+++ b/src/persp/dbgperspective/nmv-dbg-perspective.cc
@@ -2528,11 +2528,18 @@ DBGPerspective::on_frame_selected_signal (int /* a_index */,
{
LOG_FUNCTION_SCOPE_NORMAL_DD;
- if (m_priv->current_frame == a_frame)
- return;
-
NEMIVER_TRY;
+ if (m_priv->current_frame == a_frame)
+ {
+ // So the user clicked on the frame to select it, even if we
+ // where already on it before. That probably means that she
+ // has scrolled the source view a little bit, lost where the
+ // where-arrow was, and want to get it again. So let's only
+ // set the where and bail out.
+ set_where (a_frame, /*a_do_scroll=*/true, /*a_try_hard=*/true);
+ return;
+ }
m_priv->current_frame = a_frame;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]