summaryrefslogtreecommitdiff
path: root/src/scripts.h
diff options
context:
space:
mode:
authorportix <none@none>2012-10-02 23:59:15 +0200
committerportix <none@none>2012-10-02 23:59:15 +0200
commit24ef749b95bfb684bdc465b8a6748873514a69b8 (patch)
tree3926bfe8a8195d5a73c61959213dac22107b4d81 /src/scripts.h
parent0ef10deba55e01d553b887c3017cf63fcbe16565 (diff)
downloaddwb-24ef749b95bfb684bdc465b8a6748873514a69b8.zip
Update statusbar from scripts
Diffstat (limited to 'src/scripts.h')
-rw-r--r--src/scripts.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/scripts.h b/src/scripts.h
index f1beb70f..6e823aa6 100644
--- a/src/scripts.h
+++ b/src/scripts.h
@@ -45,6 +45,7 @@ enum SIGNALS {
SCRIPTS_SIG_CLOSE,
SCRIPTS_SIG_DOCUMENT_LOADED,
SCRIPTS_SIG_MOUSE_MOVE,
+ SCRIPTS_SIG_STATUS_BAR,
SCRIPTS_SIG_LAST,
} ;
@@ -77,6 +78,12 @@ void scripts_completion_activate(void);
return true; \
} else g_free(json); \
G_STMT_END
+#define SCRIPTS_EMIT(signal, json) G_STMT_START \
+ if (scripts_emit(&signal)) { \
+ g_free(json); \
+ return; \
+ } else g_free(json); \
+G_STMT_END
#define SCRIPTS_WV(gl) .jsobj = (VIEW(gl)->script_wv)
#define SCRIPTS_SIG_META(js, sig, num) .json = js, .signal = SCRIPTS_SIG_##sig, .numobj = num