[9753] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: Strangeness with gtk_text_set_point

daemon@ATHENA.MIT.EDU (Marc)
Mon Nov 2 08:31:03 1998

Date: Mon, 02 Nov 1998 14:29:54 +0100
From: Marc <marc@upr41.univ-rennes1.fr>
To: gtk-list@redhat.com
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

Lee wrote:

> When using gtk_text_set_point to do so, it most definately *does* change
> the insertion point of the text area. However, what it does *not* seem
> to do, is actually change the visible cursor position.

Try :
  gtk_text_set_point (GTK_TEXT (text), insertion_point);
  gtk_text_insert (GTK_TEXT (text), NULL,
	           &text->style->black, NULL, " ", 1);
  gtk_text_backward_delete (GTK_TEXT (text), 1);

gtk_text_set_point sets the insertion point for the next gtk_text_insert
but does not change the cursor position... 
-- 
Marc
** ERROR **: sigsegv caught

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post