WrapEarnPass left a comment (geany/geany-plugins#1577)
So, there is undocumented magic in COLOR_RED
if msgwin_compiler_add_string(COLOR_RED, stderr_data->str);
then... autogenerate jumps from Compiler tab.
geany/geany/src/msgwindow.c
```msgwin_goto_compiler_file_line
...
/* if the item is not coloured red, it's not an error line */
gtk_tree_model_get(model, &iter, COMPILER_COL_COLOR, &color,
-1);
if (color == NULL || ! gdk_color_equal(color, &color_error))
{
if (color != NULL)
gdk_color_free(color);
return FALSE;
}
gdk_color_free(color);
gtk_tree_model_get(model, &iter, COMPILER_COL_STRING, &string,
-1)
```
My compiler jumps are broken because I used COLOR_BLACK.
So, to get jumps from the compiler tab, all I need to do is break stderr into
strings and color them red.
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1577#issuecomment-4799022102
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany-plugins/issues/1577/[email protected]>