Re: [gtk-list] Strangeness with gtk_text_set_point



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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]