Add function to find if a bw is a frameset.

This commit is contained in:
Michael Drake 2014-10-25 12:00:34 +01:00
parent ff72d58f60
commit eea369afe7
2 changed files with 15 additions and 0 deletions

View File

@ -476,6 +476,13 @@ bool browser_window_can_search(struct browser_window *bw)
return true;
}
/* exported interface, documented in desktop/browser.h */
bool browser_window_is_frameset(struct browser_window *bw)
{
return (bw->children != NULL);
}
/**
* Set or remove a selection.
*

View File

@ -594,6 +594,14 @@ char * browser_window_get_selection(struct browser_window *bw);
*/
bool browser_window_can_search(struct browser_window *bw);
/**
* Find out if a browser window contains a frameset
*
* \param bw browser window to look at
* \return true iff browser window contains a frameset
*/
bool browser_window_is_frameset(struct browser_window *bw);
/**
* Dump debug info concerning the browser window's contents to file