diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-13 18:48:22 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-13 18:49:23 +0100 |
commit | cf432b4c3d366edef40798a777ab2014715fd7f4 (patch) | |
tree | eb8e817191dc090a024ecaf1d6bab3b85b6ed470 /LibC/gui.cpp | |
parent | fbbf57b61c34e548159f70d496dec2b0fbc54545 (diff) | |
download | serenity-cf432b4c3d366edef40798a777ab2014715fd7f4.zip |
WindowServer: Refactor more of the menu APIs to be message-based.
This is all pretty verbose but I can whittle it down later. :^)
Diffstat (limited to 'LibC/gui.cpp')
-rw-r--r-- | LibC/gui.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/LibC/gui.cpp b/LibC/gui.cpp index d5e355c589..bf8530fa4e 100644 --- a/LibC/gui.cpp +++ b/LibC/gui.cpp @@ -69,24 +69,6 @@ int gui_set_global_cursor_tracking_enabled(int window_id, bool enabled) __RETURN_WITH_ERRNO(rc, rc, -1); } -int gui_menubar_add_menu(int menubar_id, int menu_id) -{ - int rc = syscall(SC_gui_menubar_add_menu, menubar_id, menu_id); - __RETURN_WITH_ERRNO(rc, rc, -1); -} - -int gui_menu_create(const char* name) -{ - int rc = syscall(SC_gui_menu_create, name); - __RETURN_WITH_ERRNO(rc, rc, -1); -} - -int gui_menu_destroy(int menu_id) -{ - int rc = syscall(SC_gui_menu_destroy, menu_id); - __RETURN_WITH_ERRNO(rc, rc, -1); -} - int gui_menu_add_separator(int menu_id) { int rc = syscall(SC_gui_menu_add_separator, menu_id); @@ -98,9 +80,3 @@ 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); } - -int gui_app_set_menubar(int menubar_id) -{ - int rc = syscall(SC_gui_app_set_menubar, menubar_id); - __RETURN_WITH_ERRNO(rc, rc, -1); -} |