summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2014-03-18 23:03:28 +0100
committerportix <portix@gmx.net>2014-03-18 23:03:28 +0100
commit4aa3845fd11fe261fb61e10b1d0771b9a3381558 (patch)
tree332187da66967a30e5d1a6f2989af124f2b64455
parent28351013b067c621056400306737bb9fe0a7145e (diff)
downloaddwb-4aa3845fd11fe261fb61e10b1d0771b9a3381558.zip
Use webkit_dom_html_input_element_get_checked for dwb:plugins, closing #407
-rw-r--r--src/html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/html.c b/src/html.c
index bb1e92e3..9a7aea56 100644
--- a/src/html.c
+++ b/src/html.c
@@ -117,8 +117,8 @@ html_remove_item_cb(WebKitDOMElement *el, WebKitDOMEvent *ev, GList *gl)
dwb_remove_search_engine(attr);
else if (!g_strcmp0(uri, "dwb:plugins"))
{
- const char *checked = dom_node_get_attribute(WEBKIT_DOM_NODE(target), "checked");
- plugindb_set_enabled(attr, checked == NULL, true);
+ gboolean checked = webkit_dom_html_input_element_get_checked(WEBKIT_DOM_HTML_INPUT_ELEMENT(target));
+ plugindb_set_enabled(attr, checked, true);
}
}
else if ( (attr = dom_node_get_attribute(WEBKIT_DOM_NODE(target), "href")) != NULL)