Re: [Vala] Need help to scroll a textview using a scale

2018-01-25 Thread Manish Jain
  void scale_moved (Gtk.Range range)   {   int i;   Gtk.TextIter iter = new Gtk. TextIter();   view.get_iter_at_position(out iter, out i, 0, 0);   iter.set_line(iter.get_line() + 10);   view.scroll_to_iter(iter, 0, false, 0, 0);   }

Re: [Vala] Need help to scroll a textview using a scale

2018-01-25 Thread Christian Hergert
On 01/24/2018 10:03 AM, Manish Jain wrote: My last effort at the event handler is below (it is of no use, really): void scale_moved (Gtk.Range range) { int i; Gtk.TextIter iter = new Gtk. TextIter(); view.get_iter_at_position(out iter, out i, 0, 0);

[Vala] Need help to scroll a textview using a scale

2018-01-25 Thread Manish Jain
Hi, I am new to vala and am trying to pick up the fundamentals. I was trying to create a a GTK application with 3 components: Gtk.ScrolledWindow scrolled; Gtk.TextView view; Gtk.Scale v_scale; The scrolled view widget is to display a text file read at run time. I would like to