summaryrefslogtreecommitdiff
path: root/src/scripts.h
diff options
context:
space:
mode:
authorportix <none@none>2012-11-01 14:58:56 +0100
committerportix <none@none>2012-11-01 14:58:56 +0100
commit3da3defd89ea9213397bab7ec5908639b3594391 (patch)
tree82801b03e71825ce3825a5ef88103dffa20ecd81 /src/scripts.h
parent2529be6a2c5783fbdde70847787cba06cb46175b (diff)
downloaddwb-3da3defd89ea9213397bab7ec5908639b3594391.zip
New signal changeMode; new method util.getMode
Diffstat (limited to 'src/scripts.h')
-rw-r--r--src/scripts.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scripts.h b/src/scripts.h
index c860905a..218b39ec 100644
--- a/src/scripts.h
+++ b/src/scripts.h
@@ -46,6 +46,7 @@ enum SIGNALS {
SCRIPTS_SIG_DOCUMENT_LOADED,
SCRIPTS_SIG_MOUSE_MOVE,
SCRIPTS_SIG_STATUS_BAR,
+ SCRIPTS_SIG_CHANGE_MODE,
SCRIPTS_SIG_LAST,
} ;
@@ -74,7 +75,7 @@ void scripts_scratchpad_send(JSContextRef ctx, JSValueRef val);
void scripts_scratchpad_get(JSContextRef, JSObjectRef, JSObjectRef, size_t, const JSValueRef[], JSValueRef* );
#define EMIT_SCRIPT(sig) ((dwb.misc.script_signals & (1<<SCRIPTS_SIG_##sig)))
-#define SCRIPTS_EMIT_RETURN(signal, json) G_STMT_START \
+#define SCRIPTS_EMIT_RETURN(signal, json, val) G_STMT_START \
if (scripts_emit(&signal)) { \
g_free(json); \
return true; \