Re: [gtk-list] Setting scrollbar position in gtktext



I used the following to do this (assumes you are selecting that text/line
and know the offset (position)):

    gtk_editable_set_position(GTK_EDITABLE (widget), position);

    gtk_editable_select_region(GTK_EDITABLE (widget), position, position +
count);

-----Original Message-----
From: Timo Sirainen <aaaaaa@sicom.fi>
To: gtk-list@redhat.com <gtk-list@redhat.com>
Date: Friday, March 12, 1999 15:45
Subject: [gtk-list] Setting scrollbar position in gtktext


>Is there any way to move the scrollbar with GtkText widget to position
>where line x would be displayed?
>
>--
>To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
>
>



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