aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-04-05 23:35:49 +1200
committerArslaan Pathan <[email protected]>2026-04-05 23:35:49 +1200
commit151bb561befc5279f745f6190bc58f71017cabc9 (patch)
treeb1065f7ebbd7f3ad8a369c1d5f928ef5dc20506a /config.def.h
parent0a959b0924d9e48e3b1cc59b681eec06f06ce0b4 (diff)
downloadcinnamon-browser-151bb561befc5279f745f6190bc58f71017cabc9.tar.xz
cinnamon-browser-151bb561befc5279f745f6190bc58f71017cabc9.zip
Add user_start for easy extensibility via config.h and fix on_cmdbar_activate not returning anything
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index c69eb9f..16102aa 100644
--- a/config.def.h
+++ b/config.def.h
@@ -193,4 +193,15 @@ static const Command commands[] = {
{ "forward", &_cmd_forward },
};
+
+/* User start/hooks
+ * Do whatever you want here, initialize whatever custom hooks you want to your heart's content. At this point config.h can just become an extension api on crack, knock yourself out
+ * have fun */
+/* It runs just before gtk_main(), after everything prior has been initialized. */
+void user_start(Cinnamon* cinnamon) {
+ /* Function has to exist or else main.c won't compile, this code is so scuffed T_T */
+ /* for now just printf to see if it loads */
+ printf("[user_start] starting NOW!\n");
+}
+
#endif