aboutsummaryrefslogtreecommitdiff
path: root/sb.c
diff options
context:
space:
mode:
authormutantturkey <crazycal00@gmail.com>2011-05-25 00:46:09 -0400
committermutantturkey <crazycal00@gmail.com>2011-05-25 00:46:09 -0400
commit9ea4d89df0ccd9764579e745458466acaa810cfd (patch)
tree442c08164f5c5a7668711c1a46943f64d3d5cd51 /sb.c
parent14d6f12d8cfaaf41c36772c7fef2cfd3c8687a99 (diff)
added reload (bypass cache). CTRL+E
Diffstat (limited to 'sb.c')
-rw-r--r--sb.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sb.c b/sb.c
index 972f8bf..1e099f0 100644
--- a/sb.c
+++ b/sb.c
@@ -42,10 +42,15 @@ if(b) {
/* Basic reload function */
-void tab_reload() {
+void tab_reload(gboolean b) {
struct tab *t = get_tab(NULL, gtk_notebook_get_current_page(w.notebook));
+if(b) {
webkit_web_view_reload(t->view);
}
+else {
+webkit_web_view_reload_bypass_cache(t->view);
+}
+}
/* close tab, and quit if there are no tabs */