summaryrefslogtreecommitdiff
path: root/src/plugins.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2012-02-12 12:21:11 +0100
committerportix <portix@gmx.net>2012-02-12 12:21:11 +0100
commit78215e630315cc7115549444ae63e5dcf13b1198 (patch)
tree5dd461abc83bf1cd00b6caeb5fee5f009d96f360 /src/plugins.c
parent6132e496709b218276f8ba4e90cd1aa34d383624 (diff)
downloaddwb-78215e630315cc7115549444ae63e5dcf13b1198.zip
Remove unecessary dwb_clean_load_end
Diffstat (limited to 'src/plugins.c')
-rw-r--r--src/plugins.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins.c b/src/plugins.c
index 7fb22d13..eb52f942 100644
--- a/src/plugins.c
+++ b/src/plugins.c
@@ -47,7 +47,7 @@ plugins_free(Plugins *p) {
g_object_unref(l->data);
g_slist_free(p->elements);
}
- g_free(p);
+ FREE0(p);
}
static void
plugins_onclick_cb(WebKitDOMElement *element, WebKitDOMEvent *event, GList *gl) {
@@ -83,6 +83,7 @@ plugins_create_click_element(WebKitDOMElement *element, GList *gl) {
char *height = webkit_dom_css_style_declaration_get_property_value(style, "height");
char *top = webkit_dom_css_style_declaration_get_property_value(style, "top");
char *left = webkit_dom_css_style_declaration_get_property_value(style, "left");
+ char *position = webkit_dom_css_style_declaration_get_property_value(style, "position");
char *display = webkit_dom_css_style_declaration_get_property_value(style, "display");
int w, h;
if (sscanf(width, "%dpx", &w) == 1 && w<48)
@@ -99,7 +100,7 @@ plugins_create_click_element(WebKitDOMElement *element, GList *gl) {
else
div = g_slist_nth_data(v->plugins->clicks, v->plugins->created);
- char *new_style = g_strdup_printf("width:%s; height:%s; top: %s; left: %s;%s;", width, height, top, left, dwb.misc.pbbackground);
+ char *new_style = g_strdup_printf("position:%s;width:%s; height:%s; top: %s; left: %s;%s;", position, width, height, top, left, dwb.misc.pbbackground);
webkit_dom_element_set_attribute(div, "style", new_style, NULL);
g_free(new_style);