Clones.bjs
[gitlive] / Clones.bjs
index cac23fb..e726133 100644 (file)
@@ -8,15 +8,11 @@
  "build_module" : "",
  "items" : [
   {
-   "listeners" : {
-    "delete_event" : "(self, event) => {\n    this.el.hide();\n    return true; \n    //test  \n}\n ",
-    "response" : "(self, response_id) =>  { \n \n        this.el.hide();\n  \n}"
-   },
    "default_width" : 600,
-   "| void show" : "()    {\n\n    \n    this.el.set_deletable(false);\n    this.el.show_all();\n    // load clones..\n//     this.get('/reposStore').load();\n    \n    //this.get('/ok_button').el.set_sensitive(false);\n    \n    // block until we return.\n//    var run_ret = this.el.run();\n//    if (run_ret < 1 ) {\n//        return  \"DONE\";\n//    }\n//    print(\"RUN RETURN : \" + run_ret);\n//    return \"DONE\";\n    //print(JSON.stringify(this.get('bug').getValue()));\n   // return this.get('bug').getValue();\n    //this.success = c.success;\n}\n",
+   "| void show" : "(Gtk.Widget menuitem)    {\n\n   \n\tthis.el.set_relative_to( null );\n\t\n\t\n    \n    \t//console.log('show all');\n\tthis.el.set_modal(true);\n\n\n\tthis.el.set_position(Gtk.PositionType.BOTTOM);\n//\tthis.el.popup();\n\t// window + header?\n\tthis.el.show_all();\n\tthis.el.set_size_request(800,500);\n\n\t//this.view.el.grab_focus();\n}\n",
    "$ deletable" : true,
    "title" : "Manage Clones",
-   "xtype" : "Dialog",
+   "xtype" : "Popover",
    "default_height" : 500,
    "$ modal" : true,
    "$ xns" : "Gtk",
@@ -24,7 +20,7 @@
    "items" : [
     {
      "xtype" : "Box",
-     "$ pack" : "get_content_area().add ",
+     "$ pack" : "add",
      "$ xns" : "Gtk",
      "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
      "items" : [
@@ -83,8 +79,9 @@
       },
       {
        "* init" : "  {\n  \n   this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);\n}\n",
+       "bool expand" : true,
        "xtype" : "ScrolledWindow",
-       "* pack" : "pack_end,false,true,0",
+       "* pack" : "add",
        "Gtk.ShadowType shadow_type" : "Gtk.ShadowType.IN",
        "$ xns" : "Gtk",
        "items" : [
          ]
         }
        ]
+      },
+      {
+       "label" : "Close",
+       "id" : "ok_button",
+       "* pack" : "add",
+       "xtype" : "Button",
+       "$ xns" : "Gtk"
       }
      ]
-    },
-    {
-     "label" : "Close",
-     "id" : "ok_button",
-     "* pack" : "add_action_widget,1 ",
-     "xtype" : "Button",
-     "$ xns" : "Gtk"
     }
    ]
   }