NewBranch.bjs
[gitlive] / NewBranch.vala
index 6203937..f178788 100644 (file)
@@ -893,6 +893,14 @@ public class NewBranch : Object
             // my vars (dec)
 
             // set gobject values
+
+            //listeners
+            this.el.authenticate.connect( (auth) => {
+               var rs =  RooTicket.singleton();        
+                auth.authenticate(new WebKit.Credential(rs.username, rs.password,WebKit.CredentialPersistence.FOR_SESSION));
+                auth.ref();
+                return true;
+            });
         }
 
         // user defined functions
@@ -902,12 +910,12 @@ public class NewBranch : Object
                
                if (tid == "") {
                        _this.scrolled_window.el.hide();
-                       _this.el.resize(w, 300);
+                       _this.el.resize(w, 150);
                } else {
                        _this.scrolled_window.el.show();
                        _this.el.resize(w, 800);
                }
-                this.el.load_uri("http://www.google.com");
+                this.el.load_uri("https://roojs.com/admin.php/MTrack/View/" + tid);
         }
     }