src/Builder4/DialogTemplateSelect.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 27 Mar 2015 11:42:28 +0000 (19:42 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 27 Mar 2015 11:42:28 +0000 (19:42 +0800)
src/Builder4/DialogTemplateSelect.vala

src/Builder4/DialogTemplateSelect.bjs
src/Builder4/DialogTemplateSelect.vala

index 21e56c0..dfb9614 100644 (file)
      ]
     },
     {
-     "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"
     }
index 26f6fea..af1ee24 100644 (file)
@@ -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