ok.connect(new GUIEventPipe(this, "ok"));
Button cancel = (Button)glade.getWidget("btn_cancel1");
cancel.connect(new GUIEventPipe(this, "cancel"));
SpinButton spinner = (SpinButton)glade.getWidget("spn_segments");
spinner.setValue(Configuration.get().getNumberOfSegments());
}