using GLib; using Gtk; public class ScrollableArea : DrawingArea { signal void set_scroll_adjustments(Adjustment a, Adjustment b); public void initialize() { set_scroll_adjustments += on_set_scroll_adjustments; } public bool on_set_scroll_adjustments(Adjustment hadj, Adjustment vadj) { stderr.printf(" ... here should be more ...\n"); return true; } } public class Test { public static void main (string[] args) { Gtk.init(ref args); Window win = new Window(WindowType.TOPLEVEL); win.destroy += Gtk.main_quit; win.title="AnalogClockDemo"; ScrolledWindow scrolled_win = new ScrolledWindow(null, null); ScrollableArea display = new ScrollableArea(); scrolled_win.add(display); win.add(scrolled_win); win.show_all(); Gtk.main(); } }