From: Massimiliano Mirra Date: 2002-03-17T00:41:00+09:00 Subject: how does gtk curve work? I'm trying to initialize the curve in the Gtk::Curve widget. I'd expect that the following code displayed a curve from 0,0 to 1,1, slightly bent toward the middle. Well, it displays a set of point whose connection with the given data I fail to see. Anyone knows what am I missing? require 'gtk' include Gtk wnd = Window.new wnd.set_default_size(200, 200) curve = Curve.new wnd.add curve wnd.signal_connect('delete_event') { Gtk.main_quit } wnd.show_all curve.set_range(0,1,0,1) curve.set_vector(3, [0,0, 0.5,0.3, 1,1]) curve.set_curve_type CURVE_TYPE_SPLINE Gtk.main