Hi, coincidentally that's also a thing a needed for my program (a geocaching application for hildon/maemo named goxview).
And thanks for that routine, it works perfectly! Still no hint for the textview. I really can't believe that there's nothing like this in any tutorial. But all tutorials dealing with textviews inside a scrolled window do this with non-editable textviews ... Thanks again, Till Am Montag 19 Mai 2008 schrieb [EMAIL PROTECTED]: > 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 > _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list