mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 22:41:30 +03:00
get the window title from a gui_window
This commit is contained in:
parent
1edf8f2848
commit
a5aa53657c
@ -421,7 +421,7 @@ RXHOOKF(rx_gettitle)
|
||||
if(ami_gui_get_gui_window_2(gw)->tabs > 1)
|
||||
strcpy(result, ami_gui_get_tab_title(gw));
|
||||
else
|
||||
strcpy(result, ami_gui_get_gui_window_2(gw)->wintitle);
|
||||
strcpy(result, ami_gui_get_win_title(gw));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -320,6 +320,13 @@ struct gui_window *ami_gui2_get_gui_window(struct gui_window_2 *gwin)
|
||||
return gwin->gw;
|
||||
}
|
||||
|
||||
const char *ami_gui_get_win_title(struct gui_window *gw)
|
||||
{
|
||||
assert(gw != NULL);
|
||||
assert(gw->shared != NULL);
|
||||
return (const char *)gw->shared->wintitle;
|
||||
}
|
||||
|
||||
const char *ami_gui_get_tab_title(struct gui_window *gw)
|
||||
{
|
||||
assert(gw != NULL);
|
||||
|
@ -287,6 +287,11 @@ struct List *ami_gui_get_download_list(struct gui_window *gw);
|
||||
*/
|
||||
const char *ami_gui_get_tab_title(struct gui_window *gw);
|
||||
|
||||
/**
|
||||
* Get window title from gui_window
|
||||
*/
|
||||
const char *ami_gui_get_win_title(struct gui_window *gw);
|
||||
|
||||
/**
|
||||
* Get tab node from gui_window
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user