Kaydet (Commit) 2e8a6e89 authored tarafından Enrico Tröger's avatar Enrico Tröger

Fix crashes when clicking on message window items introduced with changing rules…

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


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2099 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst b9f49c02
......@@ -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>
......
......@@ -133,7 +133,7 @@ static void prepare_msg_tree_view(void)
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 @@ on_compiler_treeview_copy_activate (GtkMenuItem *menuitem,
{
case MSG_STATUS:
tv = msgwindow.tree_status;
str_idx = 0;
break;
case MSG_COMPILER:
......@@ -761,7 +762,7 @@ gboolean msgwin_goto_messages_file_line()
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
......
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