diff options
author | Josh Rickmar <jrick@devio.us> | 2012-06-20 09:40:29 -0400 |
---|---|---|
committer | Josh Rickmar <jrick@devio.us> | 2012-06-28 15:26:20 -0400 |
commit | d688e2f0cfb84c1665310d40092e1d57bab417a8 (patch) | |
tree | b2dca4ec362f6a7ef49802f6036bcfd9438e369b | |
parent | 913a60cb213706c15628c51a79699f15d4831594 (diff) | |
download | xombrero-d688e2f0cfb84c1665310d40092e1d57bab417a8.tar.gz |
Use g_strcmp0() instead of g_str_equal() which is meant for hash
tables.
-rw-r--r-- | inputfocus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inputfocus.c b/inputfocus.c index 9115e66..a3ccb04 100644 --- a/inputfocus.c +++ b/inputfocus.c @@ -37,7 +37,7 @@ focus_input_document(struct tab *t, WebKitDOMDocument *doc) n = webkit_dom_node_list_item(input, i); in = (WebKitDOMHTMLInputElement*)n; g_object_get(G_OBJECT(in), "type", &es, (char *)NULL); - if ((!g_str_equal("text", es) && !g_str_equal("password",es)) || + if ((g_strcmp0("text", es) && g_strcmp0("password",es)) || webkit_dom_html_input_element_get_disabled(in)) { /* skip not text */ g_free(es); |