On Monday 19 May 2008 13:23:39 Till Harbaum / Lists wrote:
> Hi,
> 
> i have simple problem but hakf an hour of googling didn't give me an answer:
> 
> How do i make an editable gtktextview inside a scrolledwindow to automatically
> scroll to the cursor position? 
> 
> This must be a very basic issue and i am sure it is answered in various simple
> examples. But i just don't find one ...
> 
> Till
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
> 
> 

Hi,
maybe this will help you:

        if (autoscroll) {
                model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree));   
                path = gtk_tree_model_get_path(GTK_TREE_MODEL(model), &iter);
                gtk_tree_view_scroll_to_cell(GTK_TREE_VIEW(tree), path, NULL, 
TRUE, 0.0, 0.0);
                gtk_tree_path_free(path);
        }

Ciao,
ZZ
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to