Skip to content

Commit

Permalink
Fix comment in snis_ui_element.h for ui_set_widget_focus().
Browse files Browse the repository at this point in the history
It makes the widget have focus, it doesn't remove focus.

Signed-off-by: Stephen M. Cameron <[email protected]>
  • Loading branch information
smcameron committed Oct 21, 2023
1 parent 1c4748f commit 2c00c63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion snis_ui_element.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2c00c63

Please sign in to comment.