Kaydet (Commit) 413475b2 authored tarafından Nick Treleaven's avatar Nick Treleaven

Scroll Compiler and Messages window in view when using Next Error

or Next Message.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/geany-0.10.1@1300 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 0bf91bda
......@@ -35,6 +35,8 @@ Geany 0.10.1 (TBA)
John Gabriele for reporting).
* Prevent right click in Symbol list from selecting a tag.
* Update the symbol list when starting a new document.
* Scroll Compiler and Messages window in view when using Next Error
or Next Message.
Internationalisation:
* New translations: fi (thanks to Harri Koskinen).
......
......@@ -1218,6 +1218,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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment