X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=NewBranch.bjs;h=c97f96acbfdae88e51113a868e2f2a6065654b65;hb=ee8e2cc9e8ebe8bc0b0455e27862ebdcb68794f4;hp=57698fdd558918fa1100c7e34ce1d0d2a4d45f88;hpb=128c96fc9db69baca7ba185e8a3def8fddff5f27;p=gitlive diff --git a/NewBranch.bjs b/NewBranch.bjs index 57698fdd..c97f96ac 100644 --- a/NewBranch.bjs +++ b/NewBranch.bjs @@ -524,7 +524,7 @@ "uint column_spacing" : 4, "n_columns" : 5, "$ xns" : "Gtk", - "n_rows" : 2, + "n_rows" : 3, "bool vexpand" : false, "int margin" : 2, "items" : [ @@ -547,14 +547,13 @@ }, { "listeners" : { - "clicked" : "() => {\n\n\tGLib.debug(\"fire response = 1\");\n\t\n\tvar ticket_id = _this.ticketsel.selectedTicketId();\n\t\n\tif (ticket_id == \"\") {\n\t\t_this.ticketsel.el.get_child().get_style_context().add_class(\"warning\");\n\t\treturn;\n\t}\n\t \n\t_this.el.response(1);\n}" + "clicked" : "() => {\n\n\tGLib.debug(\"fire response = 1\");\n\t\n\t \n\t \n\t_this.el.response(3);\n}" }, "label" : "Commit Changes", "id" : "createbtn", - "| void updateState" : "() {\n\n\tvar ticket_id = _this.ticketsel.selectedTicketId();\n\t\n\tif (ticket_id == \"\") {\n\t\tthis.el.set_sensitive(false);\n\t\treturn;\n\t}\n \n\tthis.el.set_sensitive(true);\n \n}\n", "* init" : "{\n this.el.get_style_context().add_class(\"suggested-action\");\n}\n", "xtype" : "Button", - "* pack" : "attach_defaults,4,5,1,2", + "* pack" : "attach_defaults,1,5,2,3", "$ xns" : "Gtk" } ]