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




commit 0556d24be64941a027748d8f9d9acd688ab56e2c
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]