After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 132827 - RFE: add API for calltips
RFE: add API for calltips
Status: RESOLVED DUPLICATE of bug 301004
Product: gtksourceview
Classification: Platform
Component: General
0.7.x
Other Linux
: Normal enhancement
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on: 114237
Blocks:
 
 
Reported: 2004-01-29 04:23 UTC by Ben Maurer
Modified: 2005-07-25 14:04 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Ben Maurer 2004-01-29 04:23:27 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.
Comment 1 Jeroen Zwartepoorte 2004-01-30 12:15:10 UTC
This depends on http://bugzilla.gnome.org/show_bug.cgi?id=114237
(PATCH available).
Comment 2 Paolo Maggi 2004-02-02 10:56:39 UTC
For the moment you can underline the errors in red like the gedit
spell checker does.

Comment 3 Ben Maurer 2004-02-02 15:43:48 UTC
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.
Comment 4 Gustavo Giráldez 2004-02-02 22:18:13 UTC
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.
Comment 5 Paolo Maggi 2004-02-04 12:46:13 UTC
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.
Comment 6 Jeroen Zwartepoorte 2005-07-25 13:57:55 UTC
Changing title since squiggly red underlines have been in GtkTextView for some
time now. This bug more about a calltip API than anything else.
Comment 7 Jeroen Zwartepoorte 2005-07-25 14:04:05 UTC

*** This bug has been marked as a duplicate of 301004 ***