summaryrefslogtreecommitdiff
path: root/src/html.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2011-06-30 00:42:12 +0200
committerportix <portix@gmx.net>2011-06-30 00:42:12 +0200
commit3f0c1d67d0305ddf48575b04b9572e39340cb81b (patch)
tree95425ef4792ca44cda17abdf5bad6126c37aa146 /src/html.c
parent127e036cc135704f1cbfd7418a258c3b70bf0a12 (diff)
downloaddwb-3f0c1d67d0305ddf48575b04b9572e39340cb81b.zip
For all dwb://-urls a setting_bar
Diffstat (limited to 'src/html.c')
-rw-r--r--src/html.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/html.c b/src/html.c
index 4068c3db..3caea693 100644
--- a/src/html.c
+++ b/src/html.c
@@ -43,12 +43,12 @@ dwb_html_load_page(WebKitWebView *wv, HtmlTable *t, char *panel) {
if (path && headpath) {
/* load head */
- g_file_get_contents(headpath, &filecontent, NULL, NULL);
+ g_file_get_contents(path, &filecontent, NULL, NULL);
g_string_append_printf(content, filecontent, t->title);
g_free(filecontent);
FREE(headpath);
/* load content */
- g_file_get_contents(path, &filecontent, NULL, NULL);
+ g_file_get_contents(headpath, &filecontent, NULL, NULL);
if (panel)
g_string_append_printf(content, filecontent, panel);
webkit_web_frame_load_alternate_string(webkit_web_view_get_main_frame(wv), content->str, current_uri, current_uri);
@@ -60,7 +60,7 @@ dwb_html_load_page(WebKitWebView *wv, HtmlTable *t, char *panel) {
void
dwb_html_navigation(GList *gl, GList *data, HtmlTable *table) {
int i=0;
- GString *panels = g_string_new(NULL);
+ GString *panels = g_string_new("<div class='setting_bar' ></div>");
for (GList *l = data; l; l=l->next, i++, i%=2) {
Navigation *n = l->data;
g_string_append_printf(panels, "<div class='dwb_line%d'><div><a href='%s'>%s</a></div></div>\n", i, n->first, n->second);
@@ -177,7 +177,7 @@ dwb_html_keys(GList *gl, HtmlTable *table) {
void
dwb_html_quickmarks(GList *gl, HtmlTable *table) {
int i=0;
- GString *panels = g_string_new(NULL);
+ GString *panels = g_string_new("<div class='setting_bar' ></div>");
for (GList *gl = dwb.fc.quickmarks; gl; gl=gl->next, i++, i%=2) {
Quickmark *q = gl->data;
g_string_append_printf(panels, "<div class='dwb_line%d'><div class=dwb_qm>%s</div><div><a href='%s'>%s</a></div></div>\n", i, q->key, q->nav->first, q->nav->second);