4 public class HoverProvider : Object, GtkSource.HoverProvider
7 public async bool populate_async ( GtkSource.HoverContext context, GtkSource.HoverDisplay display, Cancellable? cancellable) throws Error
11 global::Gtk.TextIter begin, end , pos;
13 if (!context.get_bounds(out begin, out end)) {
17 context.get_iter(out pos);
19 GLib.debug("populate hover async Word: %s || %s" ,begin.get_text(pos) , pos.get_text(end) );
20 display.append(new global::Gtk.Label("test"));
23 public bool populate (GtkSource.HoverContext context, GtkSource.HoverDisplay display) throws Error
25 global::Gtk.TextIter begin, end;
27 if (!context.get_bounds(out begin, out end)) {
30 GLib.debug("populate hover Word: %s" ,begin.get_text(end));return false;