diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-04-12 10:44:40 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-04-12 10:47:34 +0530 |
| commit | c0ee5203201d4ddf4ed560f856cb0da958935fc6 (patch) | |
| tree | 443a3dc58372e3fbeb7ae7945551c4a1ae936af8 /src/events.hpp | |
| parent | 8c5e75578b063a4fb64dc7ecef4851a860d7674d (diff) | |
| download | null-browser-c0ee5203201d4ddf4ed560f856cb0da958935fc6.tar.gz null-browser-c0ee5203201d4ddf4ed560f856cb0da958935fc6.zip | |
Rename term tab with view
Diffstat (limited to '')
| -rw-r--r-- | src/events.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/events.hpp b/src/events.hpp index 96b9008..ffa4f8b 100644 --- a/src/events.hpp +++ b/src/events.hpp @@ -7,9 +7,9 @@ #include "widgets/BrowserWindow.hpp" #include "widgets/WebViewStack.hpp" -#define SET_FIELD(NAME, TYPE, VALUE) \ - lua_pushstring(state, NAME); \ - lua_push##TYPE(state, VALUE); \ +#define SET_FIELD(NAME, TYPE, VALUE) \ + lua_pushstring(state, NAME); \ + lua_push##TYPE(state, VALUE); \ lua_settable(state, -3); class BrowserEvent { @@ -33,8 +33,8 @@ public: void lua_push(lua_State *state) const override { lua_newtable(state); - SET_FIELD("tab", integer, webview_id) - SET_FIELD("win", integer, win_id) + SET_FIELD("view_id", integer, webview_id) + SET_FIELD("win_id", integer, win_id) SET_FIELD("url", string, url.toStdString().c_str()) } }; |
