mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
Destroy treeviews.
This commit is contained in:
parent
683ff4d1b5
commit
f13a11e31f
@ -152,6 +152,18 @@ void ro_gui_cookies_postinitialise(void)
|
||||
ro_gui_cookies_menu_warning);
|
||||
}
|
||||
|
||||
/**
|
||||
* Destroy the cookies window.
|
||||
*/
|
||||
|
||||
void ro_gui_cookies_destroy(void)
|
||||
{
|
||||
if (cookies_window.tv == NULL)
|
||||
return;
|
||||
|
||||
ro_treeview_destroy(cookies_window.tv);
|
||||
}
|
||||
|
||||
/**
|
||||
* Open the cookies window.
|
||||
*
|
||||
|
@ -28,6 +28,7 @@
|
||||
|
||||
void ro_gui_cookies_preinitialise(void);
|
||||
void ro_gui_cookies_postinitialise(void);
|
||||
void ro_gui_cookies_destroy(void);
|
||||
bool ro_gui_cookies_check_window(wimp_w window);
|
||||
bool ro_gui_cookies_check_menu(wimp_menu *menu);
|
||||
|
||||
|
@ -159,6 +159,18 @@ void ro_gui_global_history_postinitialise(void)
|
||||
ro_gui_global_history_menu_warning);
|
||||
}
|
||||
|
||||
/**
|
||||
* Destroy the global history window.
|
||||
*/
|
||||
|
||||
void ro_gui_global_history_destroy(void)
|
||||
{
|
||||
if (global_history_window.tv == NULL)
|
||||
return;
|
||||
|
||||
ro_treeview_destroy(global_history_window.tv);
|
||||
}
|
||||
|
||||
/**
|
||||
* Open the global history window.
|
||||
*/
|
||||
|
@ -28,6 +28,7 @@
|
||||
|
||||
void ro_gui_global_history_preinitialise(void);
|
||||
void ro_gui_global_history_postinitialise(void);
|
||||
void ro_gui_global_history_destroy(void);
|
||||
void ro_gui_global_history_open(void);
|
||||
void ro_gui_global_history_save(void);
|
||||
bool ro_gui_global_history_check_window(wimp_w window);
|
||||
|
@ -919,6 +919,9 @@ void gui_quit(void)
|
||||
urldb_save_cookies(nsoption_charp(cookie_jar));
|
||||
urldb_save(nsoption_charp(url_save));
|
||||
ro_gui_window_quit();
|
||||
ro_gui_global_history_destroy();
|
||||
ro_gui_hotlist_destroy();
|
||||
ro_gui_cookies_destroy();
|
||||
ro_gui_saveas_quit();
|
||||
rufl_quit();
|
||||
free(gui_sprites);
|
||||
|
@ -182,6 +182,19 @@ void ro_gui_hotlist_postinitialise(void)
|
||||
ro_gui_hotlist_menu_warning);
|
||||
}
|
||||
|
||||
/**
|
||||
* Destroy the hotlist window.
|
||||
*/
|
||||
|
||||
void ro_gui_hotlist_destroy(void)
|
||||
{
|
||||
if (hotlist_window.tv == NULL)
|
||||
return;
|
||||
|
||||
tree_hotlist_path = nsoption_charp(hotlist_save);
|
||||
ro_treeview_destroy(hotlist_window.tv);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Open the hotlist window.
|
||||
|
@ -38,6 +38,7 @@
|
||||
|
||||
void ro_gui_hotlist_preinitialise(void);
|
||||
void ro_gui_hotlist_postinitialise(void);
|
||||
void ro_gui_hotlist_destroy(void);
|
||||
void ro_gui_hotlist_open(void);
|
||||
void ro_gui_hotlist_save(void);
|
||||
bool ro_gui_hotlist_check_window(wimp_w window);
|
||||
|
Loading…
Reference in New Issue
Block a user