Uncommited changes synced
[gitlive] / NewBranch.vala
index bb00de1..cce2256 100644 (file)
@@ -42,7 +42,7 @@ public class NewBranch : Object
 
         // set gobject values
         this.el.title = "Create a working branch ";
-        this.el.default_height = 200;
+        this.el.default_height = 500;
         this.el.default_width = 500;
         this.el.deletable = true;
         this.el.modal = true;
@@ -127,10 +127,13 @@ public class NewBranch : Object
          _this.prmodel.loadProjects(curproj == null ? "" : curproj.id);
         
        _this.dbmodel.loadTickets(curproj == null ? "": curproj.id, tid);
+       _this.scrolled_window.el.hide();
        if (tid != "") {
                var name = RooTicket.singleton().usernameLocal();
                var ticket = RooTicket.singleton().getById(tid);
                _this.name.el.set_text("wip_%s_T%s_%s".printf(name,ticket.id, ticket.summaryToBranchName()));
+               _this.scrolled_window.el.show();
+               _this.view.loadTicket(tid);
        }
     
        this.el.run();
@@ -480,7 +483,7 @@ public class NewBranch : Object
                var ticket = RooTicket.singleton().getById(ticket_id);
                
                _this.name.el.set_text("wip_%s_T%s_%s".printf(name,ticket.id, ticket.summaryToBranchName()));
-               
+               _this.view.loadTicket(ticket.id);
                //GLib.debug (//"Selection: %s, %s\n", (string) val1, (string) val2);
             });
         }
@@ -854,6 +857,7 @@ public class NewBranch : Object
             // my vars (dec)
 
             // set gobject values
+            this.el.vexpand = true;
             var child_0 = new Xcls_view( _this );
             child_0.ref();
             this.el.add (  child_0.el  );
@@ -883,9 +887,14 @@ public class NewBranch : Object
             this.el = new WebKit.WebView();
 
             // my vars (dec)
+
+            // set gobject values
         }
 
         // user defined functions
+        public void loadTicket (string tid) {
+                this.el.load_uri("http://www.google.com");
+        }
     }