mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 05:27:00 +03:00
Select TREE_COOKIES directly.
This commit is contained in:
parent
5c7ca39ada
commit
128fdbec43
@ -23,7 +23,7 @@
|
||||
|
||||
void ami_cookies_initialise(void)
|
||||
{
|
||||
cookies_window = ami_tree_create(cookies_get_tree_flags(), NULL);
|
||||
cookies_window = ami_tree_create(TREE_COOKIES, NULL);
|
||||
|
||||
if(!cookies_window) return;
|
||||
|
||||
|
@ -57,17 +57,6 @@ bool cookies_initialise(struct tree *tree, const char* folder_icon_name, const c
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get flags with which the cookies tree should be created;
|
||||
*
|
||||
* \return the flags
|
||||
*/
|
||||
unsigned int cookies_get_tree_flags(void)
|
||||
{
|
||||
return TREE_COOKIES;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Free memory and release all other resources.
|
||||
*/
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include "desktop/tree.h"
|
||||
|
||||
bool cookies_initialise(struct tree *tree, const char* folder_icon_name, const char* cookie_icon_name);
|
||||
unsigned int cookies_get_tree_flags(void);
|
||||
|
||||
void cookies_cleanup(void);
|
||||
|
||||
|
@ -112,7 +112,7 @@ bool nsgtk_cookies_init(const char *glade_file_location)
|
||||
drawing_area = GTK_DRAWING_AREA(gtk_builder_get_object(gladeFile,
|
||||
"cookiesDrawingArea"));
|
||||
|
||||
cookies_window = nsgtk_treeview_create(cookies_get_tree_flags(), window,
|
||||
cookies_window = nsgtk_treeview_create(TREE_COOKIES, window,
|
||||
scrolled, drawing_area);
|
||||
|
||||
if (cookies_window == NULL)
|
||||
|
@ -107,7 +107,7 @@ void ro_gui_cookies_postinitialise(void)
|
||||
|
||||
cookies_window.tv = ro_treeview_create(cookies_window.window,
|
||||
cookies_window.toolbar, &ro_cookies_treeview_callbacks,
|
||||
cookies_get_tree_flags());
|
||||
TREE_COOKIES);
|
||||
if (cookies_window.tv == NULL) {
|
||||
LOG(("Failed to allocate treeview"));
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user