Re: [gtk-list] Center text
- From: Marc <marc upr41 univ-rennes1 fr>
- To: "gtk-list redhat com" <gtk-list redhat com>
- Subject: Re: [gtk-list] Center text
- Date: Tue, 11 Aug 1998 12:01:54 +0200
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...
--
Marc
** ERROR **: sigsegv caught
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]