diff options
Diffstat (limited to 'src/scripts.h')
-rw-r--r-- | src/scripts.h | 7 |
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 |