[epiphany/pgriffis/web-extension/api-cleanups] WebExtensions: menus: Update handler conventions



commit 40809f42c203491a8bf8f0d9eec8fbc1040efd03
Author: Patrick Griffis <pgriffis igalia com>
Date:   Sun Jul 3 21:22:59 2022 -0500

    WebExtensions: menus: Update handler conventions

 src/webextension/api/menus.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/webextension/api/menus.c b/src/webextension/api/menus.c
index 752fbb0f5..037a5936c 100644
--- a/src/webextension/api/menus.c
+++ b/src/webextension/api/menus.c
@@ -319,7 +319,7 @@ get_menus (EphyWebExtension *extension)
 
 static void
 menus_handler_create (EphyWebExtensionSender *sender,
-                      char                   *name,
+                      const char             *method_name,
                       JsonArray              *args,
                       GTask                  *task)
 {
@@ -373,7 +373,7 @@ menus_remove_by_id (GHashTable *menus,
 
 static void
 menus_handler_remove (EphyWebExtensionSender *sender,
-                      char                   *name,
+                      const char             *method_name,
                       JsonArray              *args,
                       GTask                  *task)
 {
@@ -394,7 +394,7 @@ menus_handler_remove (EphyWebExtensionSender *sender,
 
 static void
 menus_handler_remove_all (EphyWebExtensionSender *sender,
-                          char                   *name,
+                          const char             *method_name,
                           JsonArray              *args,
                           GTask                  *task)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]