SF.net SVN: geany: [1300] branches/geany-0.10.1

ntrel at users.sourceforge.net ntrel at xxxxx
Sat Feb 17 16:59:36 UTC 2007


Revision: 1300
          http://svn.sourceforge.net/geany/?rev=1300&view=rev
Author:   ntrel
Date:     2007-02-17 08:59:36 -0800 (Sat, 17 Feb 2007)

Log Message:
-----------
Scroll Compiler and Messages window in view when using Next Error
or Next Message.

Modified Paths:
--------------
    branches/geany-0.10.1/NEWS
    branches/geany-0.10.1/src/ui_utils.c

Modified: branches/geany-0.10.1/NEWS
===================================================================
--- branches/geany-0.10.1/NEWS	2007-02-17 16:57:17 UTC (rev 1299)
+++ branches/geany-0.10.1/NEWS	2007-02-17 16:59:36 UTC (rev 1300)
@@ -35,6 +35,8 @@
       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).

Modified: branches/geany-0.10.1/src/ui_utils.c
===================================================================
--- branches/geany-0.10.1/src/ui_utils.c	2007-02-17 16:57:17 UTC (rev 1299)
+++ branches/geany-0.10.1/src/ui_utils.c	2007-02-17 16:59:36 UTC (rev 1300)
@@ -1218,6 +1218,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.



More information about the Commits mailing list