SF.net SVN: geany: [2099] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Wed Dec 12 18:42:53 UTC 2007


Revision: 2099
          http://geany.svn.sourceforge.net/geany/?rev=2099&view=rev
Author:   eht16
Date:     2007-12-12 10:42:53 -0800 (Wed, 12 Dec 2007)

Log Message:
-----------
Fix crashes when clicking on message window items introduced with changing rules hints for treeviews.

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-12-12 16:55:00 UTC (rev 2098)
+++ trunk/ChangeLog	2007-12-12 18:42:53 UTC (rev 2099)
@@ -5,6 +5,8 @@
    setting the background colour of odd rows of the status and message
    treeviews (closes #1848901).
  * src/vte.c: Enable dragging of text into the VTE.
+ * src/msgwindow.c: Fix crashes when clicking on message window items
+                    introduced with changing rules hints for treeviews.
 
 
 2007-12-09  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>

Modified: trunk/src/msgwindow.c
===================================================================
--- trunk/src/msgwindow.c	2007-12-12 16:55:00 UTC (rev 2098)
+++ trunk/src/msgwindow.c	2007-12-12 18:42:53 UTC (rev 2099)
@@ -133,7 +133,7 @@
 	GtkTreeSelection *selection;
 	PangoFontDescription *pfd;
 
-	// doc idx, line, bg, fg, str
+	// doc idx, line, fg, str
 	msgwindow.store_msg = gtk_list_store_new(4, G_TYPE_INT, G_TYPE_INT,
 		GDK_TYPE_COLOR, G_TYPE_STRING);
 	gtk_tree_view_set_model(GTK_TREE_VIEW(msgwindow.tree_msg), GTK_TREE_MODEL(msgwindow.store_msg));
@@ -346,6 +346,7 @@
 	{
 		case MSG_STATUS:
 		tv = msgwindow.tree_status;
+		str_idx = 0;
 		break;
 
 		case MSG_COMPILER:
@@ -761,7 +762,7 @@
 		gint idx, line;
 		gchar *string;
 
-		gtk_tree_model_get(model, &iter, 0, &line, 1, &idx, 4, &string, -1);
+		gtk_tree_model_get(model, &iter, 0, &line, 1, &idx, 3, &string, -1);
 		if (line >= 0 && idx >= 0)
 		{
 			ret = utils_goto_line(idx, line);	// checks valid idx


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