summaryrefslogtreecommitdiff
path: root/src/dwb.h
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2012-02-26 22:55:56 +0100
committerportix <portix@gmx.net>2012-02-26 22:55:56 +0100
commit7c587718a9beff619a0ad1ce195822508d03847d (patch)
treec290bfe4cc0ef7bc6d37e4a59e11f723790ebce2 /src/dwb.h
parent71de37876787915aebb87310faa771bcc2fd6d2f (diff)
downloaddwb-7c587718a9beff619a0ad1ce195822508d03847d.zip
Inject hover-element only if necessary
Diffstat (limited to 'src/dwb.h')
-rw-r--r--src/dwb.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dwb.h b/src/dwb.h
index 7c615506..760ae4cd 100644
--- a/src/dwb.h
+++ b/src/dwb.h
@@ -101,9 +101,11 @@
#define FOCUSED_FRAME() (webkit_web_view_get_focused_frame(CURRENT_WEBVIEW()))
#define VIEW_FROM_ARG(X) (X && X->p ? ((GSList*)X->p)->data : dwb.state.fview->data)
#define WEBVIEW_FROM_ARG(arg) (WEBKIT_WEB_VIEW(((View*)(arg && arg->p ? ((GSList*)arg->p)->data : dwb.state.fview->data))->web))
-#define CLEAR_COMMAND_TEXT() dwb_set_status_bar_text(dwb.gui.lstatus, NULL, NULL, NULL, false)
+#define CLEAR_COMMAND_TEXT() dwb_set_status_bar_text(dwb.gui.lstatus, NULL, NULL, NULL, false)
#define BOOLEAN(X) (!(!(X)))
+#define DOM_NODE_REMOVE_FROM_PARENT(node, error) (webkit_dom_node_remove_child(webkit_dom_node_get_parent_node(WEBKIT_DOM_NODE(node)), WEBKIT_DOM_NODE(node), error))
+
#define CURRENT_URL() webkit_web_view_get_uri(CURRENT_WEBVIEW())
#define FOO puts("bar")