From 2c00c63f3a305ce139375593d61c70cf2b57ac98 Mon Sep 17 00:00:00 2001 From: "Stephen M. Cameron" Date: Sat, 21 Oct 2023 14:14:22 -0400 Subject: [PATCH] Fix comment in snis_ui_element.h for ui_set_widget_focus(). It makes the widget have focus, it doesn't remove focus. Signed-off-by: Stephen M. Cameron --- snis_ui_element.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/snis_ui_element.h b/snis_ui_element.h index 0086880f..9f0fe763 100644 --- a/snis_ui_element.h +++ b/snis_ui_element.h @@ -129,7 +129,8 @@ GLOBAL void ui_set_focus(struct ui_element_list *list, struct ui_element *e); /* Removes keyboard focus from all ui elements in a linked list */ GLOBAL void ui_element_list_clear_focus(struct ui_element_list *list); /* Find the ui element in the linked list associated with the given widget and - * remove keyboard focus from it */ + * give it keyboard focus. The difference between this and ui_set_focus is + * this one uses the widget pointer, not the ui_element pointer. */ GLOBAL void ui_set_widget_focus(struct ui_element_list *list, void *widget); /* Set a ui element's tooltip */ GLOBAL void ui_element_set_tooltip(struct ui_element *e, char *tooltip);