GNOME Bugzilla – Bug 132827
RFE: add API for calltips
Last modified: 2005-07-25 14:04:05 UTC
Many editors allow syntax errors. For example, in visualstuido.net, if you compile the following c# program: using System; class T { static void Main () { int foo; Console.WriteLine (foo); } } After the comilation fails, the C.WL line will look like: Console.WriteLine (foo); ~~~~~~~~~~~~~~~~~~~~~~~~ Comparable to the wave lines under a spelling error. If you mouse over the line, it will display a tooltip: `CS1234: 'foo' not assigned' GtkSourceView should provide an interface for an IDE to provide similar information.
This depends on http://bugzilla.gnome.org/show_bug.cgi?id=114237 (PATCH available).
For the moment you can underline the errors in red like the gedit spell checker does.
Ok, then the only other functionality we would need is to have a tooltip on the underline. Also, it would be nice for this to be an API so that in the future when we are able to do the squigly lines there are no required changes to client code.
Well, for the tooltip you can always use the TextTag's event signal. I'm not sure we should provide API for that. *Maybe* we could reuse the calltip API, don't know.
For the tooltip we can reuse the calltip API (eventually changing it to have a more generic name). Ben: can you attach a screenshot of the error tooltip? I don't think we should provide spcial API to mark text, you can use TextTag GtkTextView have a rich API, use it when/where you can.
Changing title since squiggly red underlines have been in GtkTextView for some time now. This bug more about a calltip API than anything else.
*** This bug has been marked as a duplicate of 301004 ***