[10100] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: Gtk--: Gtk_Text::set_point() and accel tables
daemon@ATHENA.MIT.EDU (Evan Lawrence)
Sat Nov 14 10:25:27 1998
Date: Sat, 14 Nov 1998 10:24:05 -0500 (EST)
From: Evan Lawrence <evan@unix.worldpath.net>
To: tom@mycomp.com
cc: gtk-list@redhat.com
In-Reply-To: <364D4D38.370F75F3@mycomp.com>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
Hi, all the set_point routine is designed to do is set the insertion
point of the next text to be inserted in the text widget, not actually
move the cursor there, unless you insert text or delete it at that point,
as you've already discovered. AFAIK GTK+ 1.0 didn't provide a way to move
the cursor to a specified point other than inserting a space and then
deleting it, which is how we get around the problem in gEdit. GTK 1.1,
however, does have a gtk_editable_set_position routine which should do
what you're looking for - I'm afraid I'm not familiar enough with GTK-- to
say whether or not they have a wrapper for this function, and you do need
to remember that it's only in GTK 1.1, so it may just be easier to insert
a space and delete a space. Hope this helps.
--
Evan Lawrence
On Sat, 14 Nov 1998 tom@mycomp.com wrote:
> Hi Everyone, I'm new to this list, and fairly new to gtk (--).
>
> I'm having some trouble doing a Gtk_Text::set_point(n), it doesn't seem
> to actually set the point unless you insert or deleted text after.
>
> Also, is there any documentation for using accellerater tables? I'm not
> sure how to get them to work with GtkMenuFactory.
>
> Thanks,
>
> Tom
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
>
>
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null