Re: GtkTreeView Scrolling.
- From: Nils Olav Selåsdal <noselasd frisurf no>
- To: gtk-app-devel-list gnome org
- Subject: Re: GtkTreeView Scrolling.
- Date: 20 Jan 2002 23:41:38 +0000
On Sun, 2002-01-20 at 21:43, Burra wrote:
What is the best way to scroll to the bottom of the TreeView when you add
an entry into the TreeView?
I want to do this...
gtk_list_store_append (...)
gtk_list_store_set (...)
...call some here function, so that next time the TreeView redraws it will
scroll to the last row in the treeview...
Anyone know?
--------------------[-- burra colorado edu --]--------------------------
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Dig what you need out of this. gtk_clist_moveto is the one you want...
gint scrollfunc(gpointer userdata){
static gint lastrow ;
gint rownow;
rownow = GTK_CLIST(mainlist)->rows -1;
if(rownow != lastrow){
gtk_clist_moveto(GTK_CLIST(mainlist),rownow,0,1.0,1.0);
lastrow = rownow;
}
return TRUE;
}
--
Nils Olav Selåsdal <NOS Utel no>
System Developer, UtelSystems a/s
w w w . u t e l s y s t e m s . c o m
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]