Strictly use handle_ prefix for signal handlers

This commit is contained in:
tokyo4j 2025-06-26 18:23:09 +09:00 committed by Hiroaki Yamamoto
parent 6f70cd0d6e
commit 75bd188592
11 changed files with 49 additions and 56 deletions

View file

@ -13,7 +13,7 @@
/* Internal helpers */
static void
ssd_button_destroy_notify(struct wl_listener *listener, void *data)
handle_button_node_destroy(struct wl_listener *listener, void *data)
{
struct ssd_button *button = wl_container_of(listener, button, destroy);
wl_list_remove(&button->destroy.link);
@ -32,7 +32,7 @@ ssd_button_descriptor_create(struct wlr_scene_node *node)
struct ssd_button *button = znew(*button);
/* Let it destroy automatically when the scene node destroys */
button->destroy.notify = ssd_button_destroy_notify;
button->destroy.notify = handle_button_node_destroy;
wl_signal_add(&node->events.destroy, &button->destroy);
/* And finally attach the ssd_button to a node descriptor */