mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-16 09:12:44 +03:00
Correctly declare function as static and fix documentation
This commit is contained in:
parent
9cc610c5ee
commit
1f341ed084
@ -259,7 +259,12 @@ bool ro_gui_search_prepare_menu(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ro_gui_search_bw_searchable(struct browser_window *bw)
|
||||
/**
|
||||
* Determine of the browser window is searchable.
|
||||
*
|
||||
* \param bw The browser window to check.
|
||||
*/
|
||||
static bool ro_gui_search_bw_searchable(struct browser_window *bw)
|
||||
{
|
||||
hlcache_handle *h;
|
||||
|
||||
@ -268,7 +273,7 @@ bool ro_gui_search_bw_searchable(struct browser_window *bw)
|
||||
h = browser_window_get_content(bw);
|
||||
|
||||
/* only handle html/textplain contents */
|
||||
/* TODO: Should have content_is_searchable() api */
|
||||
/** \todo Should have content_is_searchable() api */
|
||||
if ((!h) || (content_get_type(h) != CONTENT_HTML &&
|
||||
content_get_type(h) != CONTENT_TEXTPLAIN))
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user