comp.lang.ada
 help / color / mirror / Atom feed
From: briot.emmanuel@gmail.com
Subject: Re: Gtk / GtkAda question (TextBuffer insertion)
Date: Wed, 15 Apr 2020 00:27:59 -0700 (PDT)
Date: 2020-04-15T00:27:59-07:00	[thread overview]
Message-ID: <c14df636-bcb6-4b51-99c6-07e6bd438054@googlegroups.com> (raw)
In-Reply-To: <0cdbb4b0-9390-b908-2ea4-948095da9c25@planet.nl>

> That seems logical, but I was searching for the routine the sets the 
> cursor at the mark.

For reference,

This seems to be `Gtk.Text_Buffer.Create_Mark` (which creates a new mark
at the position of a given Gtk_Text_Iter).
To delete the mark, you would use `Mark.Unref` (or `Glib.Object.Unref (Mark)`)

To get the position of the cursor, you would use `Gtk.Text_Buffer.Get_Insert`

And finally to convert from a mark back to an iter you would use `Gtk.Text_Buffer.Get_Iter_At_Mark`

      reply	other threads:[~2020-04-15  7:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-11 13:34 Gtk / GtkAda question (TextBuffer insertion) ldries46
2020-04-14  6:37 ` briot.emmanuel
2020-04-14  6:57   ` ldries46
2020-04-15  7:27     ` briot.emmanuel [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox