diff options
author | portix <portix@gmx.net> | 2014-03-18 23:03:28 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2014-03-18 23:03:28 +0100 |
commit | 4aa3845fd11fe261fb61e10b1d0771b9a3381558 (patch) | |
tree | 332187da66967a30e5d1a6f2989af124f2b64455 | |
parent | 28351013b067c621056400306737bb9fe0a7145e (diff) | |
download | dwb-4aa3845fd11fe261fb61e10b1d0771b9a3381558.zip |
Use webkit_dom_html_input_element_get_checked for dwb:plugins, closing #407
-rw-r--r-- | src/html.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |