SF.net SVN: geany: [806] trunk/src/msgwindow.c

ntrel at users.sourceforge.net ntrel at xxxxx
Sat Sep 9 14:26:58 UTC 2006


Revision: 806
          http://svn.sourceforge.net/geany/?rev=806&view=rev
Author:   ntrel
Date:     2006-09-09 07:26:54 -0700 (Sat, 09 Sep 2006)

Log Message:
-----------
Check msgwin visible before scrolling

Modified Paths:
--------------
    trunk/src/msgwindow.c

Modified: trunk/src/msgwindow.c
===================================================================
--- trunk/src/msgwindow.c	2006-09-09 12:03:11 UTC (rev 805)
+++ trunk/src/msgwindow.c	2006-09-09 14:26:54 UTC (rev 806)
@@ -192,15 +192,18 @@
 	gtk_list_store_append(msgwindow.store_compiler, &iter);
 	gtk_list_store_set(msgwindow.store_compiler, &iter, 0, color, 1, string, -1);
 
-	path = gtk_tree_model_get_path(
-		gtk_tree_view_get_model(GTK_TREE_VIEW(msgwindow.tree_compiler)), &iter);
-	gtk_tree_view_scroll_to_cell(GTK_TREE_VIEW(msgwindow.tree_compiler), path, NULL, TRUE, 0.5, 0.5);
+	if (app->msgwindow_visible)
+	{
+		path = gtk_tree_model_get_path(
+			gtk_tree_view_get_model(GTK_TREE_VIEW(msgwindow.tree_compiler)), &iter);
+		gtk_tree_view_scroll_to_cell(GTK_TREE_VIEW(msgwindow.tree_compiler), path, NULL, TRUE, 0.5, 0.5);
 
-	if (scroll)
-	{
-		gtk_tree_view_set_cursor(GTK_TREE_VIEW(msgwindow.tree_compiler), path, NULL, FALSE);
+		if (scroll)
+		{
+			gtk_tree_view_set_cursor(GTK_TREE_VIEW(msgwindow.tree_compiler), path, NULL, FALSE);
+		}
+		gtk_tree_path_free(path);
 	}
-	gtk_tree_path_free(path);
 }
 
 


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