[nemiver] Restore call stack initial window (Closes: #599768)
- From: Dodji Seketeli <dodji src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nemiver] Restore call stack initial window (Closes: #599768)
- Date: Tue, 27 Oct 2009 15:06:18 +0000 (UTC)
commit d854f8a2cc18df5deec66be8e0cfd84456e07788
Author: Dodji Seketeli <dodji redhat com>
Date: Tue Oct 27 15:44:36 2009 +0100
Restore call stack initial window (Closes: #599768)
* src/persp/dbgperspective/nmv-call-stack.cc:
(CallStack::Priv::on_debugger_stopped_signal): Restore the initial
call stack window when we are not in a frame paging transaction.
(struct CallStack::Priv::append_frames_to_tree_view): Fix typo.
src/persp/dbgperspective/nmv-call-stack.cc | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/persp/dbgperspective/nmv-call-stack.cc b/src/persp/dbgperspective/nmv-call-stack.cc
index a8b7654..e140f3a 100644
--- a/src/persp/dbgperspective/nmv-call-stack.cc
+++ b/src/persp/dbgperspective/nmv-call-stack.cc
@@ -251,7 +251,7 @@ struct CallStack::Priv {
const IDebugger::Frame &/*a_frame*/,
int /*a_thread_id*/,
int /*a_bp_num*/,
- const UString &/*a_cookie*/)
+ const UString &a_cookie)
{
LOG_FUNCTION_SCOPE_NORMAL_DD;
@@ -264,6 +264,13 @@ struct CallStack::Priv {
return;
}
+ if (a_cookie != COOKIE_CALL_STACK_IN_FRAME_PAGING_TRANS) {
+ // Restore the frame window, in case the user changed it by
+ // requesting more call stack frames.
+ frame_low = 0;
+ frame_high = nb_frames_expansion_chunk;
+ }
+
if (should_process_now ()) {
finish_handling_debugger_stopped_event ();
} else {
@@ -617,7 +624,7 @@ struct CallStack::Priv {
// Erase the expansion row, if it exists.
if (store && !store->children ().empty ()) {
- LOG_DD ("does expansion row exists ?");
+ LOG_DD ("does expansion row exist ?");
Gtk::TreeRow last_row =
store->children ()[store->children ().size () - 1];
if (last_row[columns ().is_expansion_row]) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]