mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 05:27:00 +03:00
Use TREE_HISTORY directly.
This commit is contained in:
parent
128fdbec43
commit
9f35fd3fee
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
*/
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user