Revision: 1298 http://svn.sourceforge.net/geany/?rev=1298&view=rev Author: ntrel Date: 2007-02-17 08:52:52 -0800 (Sat, 17 Feb 2007)
Log Message: ----------- Scroll Compiler and Messages window in view when using Next Error or Next Message.
Modified Paths: -------------- trunk/ChangeLog trunk/src/ui_utils.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2007-02-17 12:13:41 UTC (rev 1297) +++ trunk/ChangeLog 2007-02-17 16:52:52 UTC (rev 1298) @@ -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:
Modified: trunk/src/ui_utils.c =================================================================== --- trunk/src/ui_utils.c 2007-02-17 12:13:41 UTC (rev 1297) +++ trunk/src/ui_utils.c 2007-02-17 16:52:52 UTC (rev 1298) @@ -1073,6 +1073,15 @@ 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; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.