[nemiver: 4/6] Scroll 'File Open' list to starting source file (C
- From: Jonathon Jongsma <jjongsma src gnome org>
- To: svn-commits-list gnome org
- Subject: [nemiver: 4/6] Scroll 'File Open' list to starting source file (C
- Date: Mon, 9 Mar 2009 23:09:47 -0400 (EDT)
commit e7092eb8bea202f3c48e4b9de87040682b0153dc
Author: Jonathon Jongsma <jonathon jongsma collabora co uk>
Date: Sat Mar 7 22:36:42 2009 -0600
Scroll 'File Open' list to starting source file (Closes: #525512)
* src/persp/dbgperspective/nmv-file-list.cc: In addition to expanding the
treeview to the starting filename, also scroll the treeview to the
directory containing the starting file
---
src/persp/dbgperspective/nmv-file-list.cc | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/persp/dbgperspective/nmv-file-list.cc b/src/persp/dbgperspective/nmv-file-list.cc
index 92f40a9..ef6304e 100644
--- a/src/persp/dbgperspective/nmv-file-list.cc
+++ b/src/persp/dbgperspective/nmv-file-list.cc
@@ -362,7 +362,11 @@ FileListView::expand_to_filename (const UString &a_filename)
Gtk::TreeModel::iterator iter =
find_filename_recursive (tree_iter, a_filename);
if (iter) {
- expand_to_path (Gtk::TreeModel::Path(iter));
+ Gtk::TreeModel::Path path(iter);
+ expand_to_path (path);
+ // Scroll to the directory that contains the file
+ path.up ();
+ scroll_to_row (path);
break;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]