RepoStatusPopover.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 16 Nov 2018 01:58:02 +0000 (09:58 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 16 Nov 2018 01:58:02 +0000 (09:58 +0800)
RepoStatusPopover.vala

RepoStatusPopover.bjs
RepoStatusPopover.vala

index 95b9979..36fc2d2 100644 (file)
@@ -8,12 +8,12 @@
  "build_module" : "gitlive",
  "items" : [
   {
+   "GitRepo repo" : "",
    "id" : "RepoStatusPopover",
    "| void show" : " (Gtk.Widget btn, GitRepo repo) {\n    _this.repo = repo;\n    // get the active project.\n     var lm = Gtk.SourceLanguageManager.get_default();\n                \n//    ((Gtk.SourceBuffer)(_this.view.el.get_buffer())) .set_language(\n  //      lm.get_language(\"html\")\n //   );\n  \n    //print (project.fn);\n    //project.runhtml = project.runhtml || '';\n    _this.diff_view.el.get_buffer().set_text(\"diff goes here\");\n    \n      \n      \n    \t//console.log('show all');\n\tthis.el.set_modal(true);\n\tthis.el.set_relative_to(btn);\n\n\t//this.el.set_position(Gtk.PositionType.RIGHT);\n\n\t// window + header?\n\t print(\"SHOWALL - POPIP\\n\");\n\tthis.el.show_all();\n\tthis.el.set_size_request(800,500);\n\tthis.view.el.grab_focus();\n\t\n    \n    //this.el.show_all();\n}\n",
    "xtype" : "Popover",
    "Gtk.PositionType position" : "Gtk.PositionType.RIGHT",
    "$ xns" : "Gtk",
-   "Project.Project project" : "",
    "bool modal" : true,
    "uint border_width" : 0,
    "items" : [
index 45b7f6a..ba9b46a 100644 (file)
@@ -18,7 +18,7 @@ public class Xcls_RepoStatusPopover : Object
     public Xcls_diff_view diff_view;
 
         // my vars (def)
-    public Project.Project project;
+    public GitRepo repo;
 
     // ctor
     public Xcls_RepoStatusPopover()