Select TREE_COOKIES directly.

This commit is contained in:
Michael Drake 2013-09-02 14:33:53 +01:00
parent 5c7ca39ada
commit 128fdbec43
5 changed files with 3 additions and 15 deletions

View File

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

View File

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

View File

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

View File

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

View File

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