browser_window: Add an event for page info state change
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
6fc2666d07
commit
7f628f7ee8
|
@ -818,6 +818,11 @@ static nserror browser_window_content_ready(struct browser_window *bw)
|
|||
browser_window_create_iframes(bw, html_get_iframe(bw->current_content));
|
||||
}
|
||||
|
||||
/* Indicate page status may have changed */
|
||||
if (res == NSERROR_OK) {
|
||||
res = guit->window->event(bw->window, GW_EVENT_PAGE_INFO_CHANGE);
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
|
@ -119,6 +119,12 @@ enum gui_window_event {
|
|||
* selection started
|
||||
*/
|
||||
GW_EVENT_START_SELECTION,
|
||||
|
||||
/**
|
||||
* Page status has changed and so the padlock should be
|
||||
* updated.
|
||||
*/
|
||||
GW_EVENT_PAGE_INFO_CHANGE,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue