NewBranch.bjs
[gitlive] / NewBranch.bjs
index 1fc586a..c97f96a 100644 (file)
@@ -28,6 +28,7 @@
      "listeners" : {
       "switch_page" : "(page, page_num) => {\n\tGLib.debug(\"Switch to page: %d\", (int)page_num);\n\tswitch(page_num) {\n\t\tcase 0: \n\t\t\tbreak; // do nothing.. it's already loaded at start.\n\t\tcase 1: \n\t\t\t_this.create_ticket_tab.load_data();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\t_this.quick_commit_tab.load_data();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t}\n}\n"
      },
+     "id" : "notebook",
      "* pack" : "get_content_area().add",
      "xtype" : "Notebook",
      "$ xns" : "Gtk",
          "uint column_spacing" : 4,
          "n_columns" : 5,
          "$ xns" : "Gtk",
-         "n_rows" : 2,
+         "n_rows" : 3,
          "bool vexpand" : false,
          "int margin" : 2,
          "items" : [
           },
           {
            "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"
           }
          ]