diff options
author | portix <none@none> | 2012-10-02 23:59:15 +0200 |
---|---|---|
committer | portix <none@none> | 2012-10-02 23:59:15 +0200 |
commit | 24ef749b95bfb684bdc465b8a6748873514a69b8 (patch) | |
tree | 3926bfe8a8195d5a73c61959213dac22107b4d81 /src/scripts.h | |
parent | 0ef10deba55e01d553b887c3017cf63fcbe16565 (diff) | |
download | dwb-24ef749b95bfb684bdc465b8a6748873514a69b8.zip |
Update statusbar from scripts
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 |