[Gtk-sharp-list] Gdk.Pixbuf

olterman@dataphone.se olterman@dataphone.se
Wed, 21 May 2003 10:55:19 +0200 (CEST)

Hello again, 

I am trying to move the cursor to a given line in a textbuffer. I have
managed to move it to the last line with IterEnd, I just cant figure this
out please help. I am getting the line number as a string from a GtkEntry
and need to convert that into an int and then move the cursor to that line.
I wold also be much obliged if someone could show me how to scroll the
window to the cursor.

	TextIter it;
	//TextIter it2 = App.editor.buf.EndIter;
	//int line;
	//(int) line=goto_entry.Text + 0;
	//int line= 3;
	 //it = App.editor.buf.GetIterAtLine(out it, line);
	it = App.editor.buf.EndIter;
	Console.WriteLine(goto_entry.Text + ": " + it);