{
"$ xns" : "Gtk",
"* pack" : "add",
- "id" : "save_button",
- "label" : "Save",
+ "bool always_show_image" : true,
"listeners" : {
"clicked" : [
" () => { ",
" _this.saveContents();",
+ " _this.window.windowstate.setState(State.PREVIEW);",
"}",
" "
]
return _Editor;
}
public Xcls_save_button save_button;
- public Xcls_save_button save_button;
public Xcls_RightEditor RightEditor;
public Xcls_view view;
public Xcls_buffer buffer;
var child_2 = new Xcls_HScale5( _this );
child_2.ref();
this.el.add ( child_2.el );
- var child_3 = new Xcls_save_button( _this );
+ var child_3 = new Xcls_Button6( _this );
child_3.ref();
this.el.add ( child_3.el );
}
// user defined functions
}
- public class Xcls_save_button : Object
+ public class Xcls_Button6 : Object
{
public Gtk.Button el;
private Editor _this;
// my vars (def)
// ctor
- public Xcls_save_button(Editor _owner )
+ public Xcls_Button6(Editor _owner )
{
_this = _owner;
- _this.save_button = this;
this.el = new Gtk.Button();
// my vars (dec)
// set gobject values
- this.el.label = "Save";
+ this.el.always_show_image = true;
//listeners
this.el.clicked.connect( () => {
_this.saveContents();
+ _this.window.windowstate.setState(State.PREVIEW);
});
}