Re: [gtk-list] Center text

Pelaez Valdes Canek wrote:
> I have this small text window with a scrollbar.  The tex is larger than the
> window, and I select part of the text, out of the view area.
> ┐How I center the selected text in the view area?

I use :

  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);

where insertion_point is the position just after the selected area...

** ERROR **: sigsegv caught

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