Scroll Compiler and Messages window in view when using Next Error

or Next Message.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1298 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2007-02-17 16:52:52 +00:00
parent ece66ddd5a
commit c791e26823
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2007-02-17 Nick Treleaven <nick.treleaven@btinternet.com>
* src/ui_utils.c:
Scroll Compiler and Messages window in view when using Next Error
or Next Message.
2007-02-16 Nick Treleaven <nick.treleaven@btinternet.com>
* src/sciwrappers.c, src/sciwrappers.h, src/sci_cb.c, src/document.c:

View File

@ -1073,6 +1073,15 @@ gboolean ui_tree_view_find_next(GtkTreeView *treeview, TVMatchCallback cb)
if (! gtk_tree_model_iter_next(model, &iter))
return FALSE; // no more items
}
// scroll item in view
if (app->msgwindow_visible)
{
GtkTreePath *path = gtk_tree_model_get_path(
gtk_tree_view_get_model(treeview), &iter);
gtk_tree_view_scroll_to_cell(treeview, path, NULL, TRUE, 0.5, 0.5);
gtk_tree_path_free(path);
}
return TRUE;
}