Use TREE_HISTORY directly.

This commit is contained in:
Michael Drake 2013-09-02 14:39:04 +01:00
parent 128fdbec43
commit 9f35fd3fee
7 changed files with 5 additions and 18 deletions

View File

@ -24,7 +24,7 @@
void ami_global_history_initialise(void)
{
global_history_window = ami_tree_create(history_global_get_tree_flags(), NULL);
global_history_window = ami_tree_create(TREE_HISTORY, NULL);
if(!global_history_window) return;

View File

@ -117,7 +117,7 @@ bool atari_global_history_init( void )
}
wind_set_str(handle, WF_NAME, (char*)messages_get("GlobalHistory"));
gl_history.tv = atari_treeview_create(history_global_get_tree_flags(),
gl_history.tv = atari_treeview_create(TREE_HISTORY,
gl_history.window, handle_event);
gemtk_wm_unlink(gl_history.window);

View File

@ -30,7 +30,7 @@
{
if ((self = [super initWithWindowNibName: @"HistoryWindow"]) == nil) return nil;
tree = [[Tree alloc] initWithFlags: history_global_get_tree_flags()];
tree = [[Tree alloc] initWithFlags: TREE_HISTORY];
history_global_initialise( [tree tree], "directory.png" );
return self;

View File

@ -51,17 +51,6 @@ bool history_global_initialise(struct tree *tree, const char* folder_icon_name)
}
/**
* Get flags with which the global history tree should be created;
*
* \return the flags
*/
unsigned int history_global_get_tree_flags(void)
{
return TREE_HISTORY;
}
/**
* Deletes the global history tree.
*/

View File

@ -25,7 +25,6 @@
#include "desktop/tree.h"
bool history_global_initialise(struct tree *tree, const char* folder_icon_name);
unsigned int history_global_get_tree_flags(void);
void history_global_cleanup(void);
bool history_global_export(const char *path);

View File

@ -115,8 +115,7 @@ bool nsgtk_history_init(const char *glade_file_location)
drawing_area = GTK_DRAWING_AREA(gtk_builder_get_object(gladeFile, "globalHistoryDrawingArea"));
global_history_window = nsgtk_treeview_create(
history_global_get_tree_flags(), window, scrolled,
drawing_area);
TREE_HISTORY, window, scrolled, drawing_area);
if (global_history_window == NULL)
return false;

View File

@ -112,7 +112,7 @@ void ro_gui_global_history_postinitialise(void)
ro_treeview_create(global_history_window.window,
global_history_window.toolbar,
&ro_global_history_treeview_callbacks,
history_global_get_tree_flags());
TREE_HISTORY);
if (global_history_window.tv == NULL) {
LOG(("Failed to allocate treeview"));
return;