mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
WindowServer: Convert the remaining menu APIs into messages.
This commit is contained in:
parent
cf432b4c3d
commit
ef4e9860fd
Notes:
sideshowbarker
2024-07-19 15:45:27 +09:00
Author: https://github.com/awesomekling
Commit: ef4e9860fd
11 changed files with 86 additions and 66 deletions
12
LibC/gui.cpp
12
LibC/gui.cpp
|
|
@ -68,15 +68,3 @@ int gui_set_global_cursor_tracking_enabled(int window_id, bool enabled)
|
|||
int rc = syscall(SC_gui_set_global_cursor_tracking_enabled, window_id, enabled);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int gui_menu_add_separator(int menu_id)
|
||||
{
|
||||
int rc = syscall(SC_gui_menu_add_separator, menu_id);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int gui_menu_add_item(int menu_id, unsigned identifier, const char* text)
|
||||
{
|
||||
int rc = syscall(SC_gui_menu_add_item, menu_id, identifier, text);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue