From: Alan Knowles Date: Fri, 27 Mar 2015 11:42:28 +0000 (+0800) Subject: src/Builder4/DialogTemplateSelect.bjs X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=b8730de6ce4811492525f312c87f06041230e569 src/Builder4/DialogTemplateSelect.bjs src/Builder4/DialogTemplateSelect.vala --- diff --git a/src/Builder4/DialogTemplateSelect.bjs b/src/Builder4/DialogTemplateSelect.bjs index 21e56c0c9..dfb9614d1 100644 --- a/src/Builder4/DialogTemplateSelect.bjs +++ b/src/Builder4/DialogTemplateSelect.bjs @@ -63,20 +63,20 @@ ] }, { - "label" : "OK", + "label" : "Cancel", "* pack" : "add_action_widget,0", "xtype" : "Button", "$ xns" : "Gtk" }, { - "label" : "OK", + "label" : "Just add it", "xtype" : "Button", - "* pack" : "add_action_widget,0", + "* pack" : "add_action_widget,1", "$ xns" : "Gtk" }, { "label" : "OK", - "* pack" : "add_action_widget,0", + "* pack" : "add_action_widget,2", "xtype" : "Button", "$ xns" : "Gtk" } diff --git a/src/Builder4/DialogTemplateSelect.vala b/src/Builder4/DialogTemplateSelect.vala index 26f6fea37..af1ee24a0 100644 --- a/src/Builder4/DialogTemplateSelect.vala +++ b/src/Builder4/DialogTemplateSelect.vala @@ -39,10 +39,10 @@ public class DialogTemplateSelect : Object this.el.add_action_widget ( child_1.el , 0 ); var child_2 = new Xcls_Button9( _this ); child_2.ref(); - this.el.add_action_widget ( child_2.el , 0 ); + this.el.add_action_widget ( child_2.el , 1 ); var child_3 = new Xcls_Button10( _this ); child_3.ref(); - this.el.add_action_widget ( child_3.el , 0 ); + this.el.add_action_widget ( child_3.el , 2 ); // listeners this.el.delete_event.connect( (self, event) =>{ @@ -276,7 +276,7 @@ public class DialogTemplateSelect : Object // my vars (dec) // set gobject values - this.el.label = "OK"; + this.el.label = "Cancel"; } // user defined functions @@ -298,7 +298,7 @@ public class DialogTemplateSelect : Object // my vars (dec) // set gobject values - this.el.label = "OK"; + this.el.label = "Just add it"; } // user defined functions