Destroy treeviews.

This commit is contained in:
Michael Drake 2013-09-08 19:04:45 +01:00
parent 683ff4d1b5
commit f13a11e31f
7 changed files with 43 additions and 0 deletions

View File

@ -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.
*

View File

@ -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);

View File

@ -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.
*/

View File

@ -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);

View File

@ -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);

View File

@ -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.

View File

@ -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);