projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a31b27c
)
Uncommited changes synced
author
Alan Knowles
<alan@roojs.com>
Tue, 18 Dec 2018 04:20:14 +0000
(12:20 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 18 Dec 2018 04:20:14 +0000
(12:20 +0800)
NewBranch.bjs
patch
|
blob
|
history
NewBranch.vala
patch
|
blob
|
history
diff --git
a/NewBranch.bjs
b/NewBranch.bjs
index
b566849
..
cd71cca
100644
(file)
--- a/
NewBranch.bjs
+++ b/
NewBranch.bjs
@@
-214,7
+214,7
@@
"* pack" : "add",
"xtype" : "WebView",
"$ xns" : "WebKit",
"* pack" : "add",
"xtype" : "WebView",
"$ xns" : "WebKit",
- "| void loadTicket" : "(string tid) {\n\ti
f (tid == \"\") {\n\t\t_this.scrolled_window.el.hide();\n\t} else {\n\t\t_this.scrolled_window.el.show(
);\n\t}\n\t this.el.load_uri(\"http://www.google.com\");\n}\n"
+ "| void loadTicket" : "(string tid) {\n\ti
nt h,w;\n\t_this.el.get_size(out w, out h);\n\t\n\tif (tid == \"\") {\n\t\t_this.scrolled_window.el.hide();\n\t\t_this.el.resize(w, 300);\n\t} else {\n\t\t_this.scrolled_window.el.show();\n\t\t_this.el.resize(w, 800
);\n\t}\n\t this.el.load_uri(\"http://www.google.com\");\n}\n"
}
]
}
}
]
}
diff --git
a/NewBranch.vala
b/NewBranch.vala
index
00dd30a
..
dbb68ee
100644
(file)
--- a/
NewBranch.vala
+++ b/
NewBranch.vala
@@
-896,10
+896,15
@@
public class NewBranch : Object
// user defined functions
public void loadTicket (string tid) {
// user defined functions
public void loadTicket (string tid) {
+ int h,w;
+ _this.el.get_size(out w, out h);
+
if (tid == "") {
_this.scrolled_window.el.hide();
if (tid == "") {
_this.scrolled_window.el.hide();
+ _this.el.resize(w, 300);
} else {
_this.scrolled_window.el.show();
} else {
_this.scrolled_window.el.show();
+ _this.el.resize(w, 800);
}
this.el.load_uri("http://www.google.com");
}
}
this.el.load_uri("http://www.google.com");
}